Giter Club home page Giter Club logo

Comments (5)

ggrimaux avatar ggrimaux commented on July 25, 2024

Hello,

Policy VPN and Route-Based VPN are very different.
I did not tried it but maybe you should check in
smc-python Route-Based VPN doc

BR,
/Greg.

from fp-ngfw-smc-python.

thomasdevulder avatar thomasdevulder commented on July 25, 2024

Could access to endpoints each side of rbvpn tunnel:

Example in Demo mode:

print(list(RouteVPN.objects.all()))

rb_vpn = RouteVPN("GRE-Plano VPN Gateway-Santa Clara VPN Gateway")
print("local endpoint (rbvpn_tunnel_side_a)"+str(rb_vpn.local_endpoint.endpoint)+" "+str(rb_vpn.local_endpoint.tunnel_interface))
print("remote endpoint (rbvpn_tunnel_side_b)"+str(rb_vpn.remote_endpoint.endpoint)+" "+str(rb_vpn.remote_endpoint.tunnel_interface))

=>
local endpoint (rbvpn_tunnel_side_a)InternalEndpoint(name=172.31.14.254) TunnelInterface(name=Tunnel Interface 1401)
remote endpoint (rbvpn_tunnel_side_b)InternalEndpoint(name=172.31.15.254) TunnelInterface(name=Tunnel Interface 1500)

Hope it could help.

from fp-ngfw-smc-python.

thomasdevulder avatar thomasdevulder commented on July 25, 2024

Asked Alex to help, he knows well VPN

from fp-ngfw-smc-python.

EtienneMILON avatar EtienneMILON commented on July 25, 2024

Hi Thomas,

Thanks for the answer.
What are the SMC and smc-python minimum versions?
I use SMC 6.5 and fp-NGFW-SMC-python 0.7.0b26, I have well access to "rb_vpn.local_endpoint.tunnel_interface" and "rb_vpn.remote_endpoint.tunnel_interface" but "rb_vpn.local_endpoint.endpoint" and "rb_vpn.remote_endpoint.endpoint" give nothing.

Best regards,
Etienne

from fp-ngfw-smc-python.

fourticq avatar fourticq commented on July 25, 2024

Hi @EtienneMILON ,

Indeed the feature was missing for Route-Based VPN tunnels.
It has now been implemented and available since 0.7.0b27 (see details here).

You can now iterate through tunnels for Route-Based VPN (having VPN Type) using rb_vpn.tunnels method.

from fp-ngfw-smc-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.