Comments (5)
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.
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.
Asked Alex to help, he knows well VPN
from fp-ngfw-smc-python.
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.
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)
- How to communicate HTTPS to SMC API using SMC-Python? HOT 1
- Enable/Disable sites in Policy Based VPN Topology HOT 8
- How to collect logs of specific access rule on SMC? HOT 1
- Unable to install other dependancy because of pytz fixed version HOT 4
- Library versioning HOT 1
- Create fw_ipv4_access_rules with "AND" combination in source HOT 2
- VPN Gateway expiration date HOT 3
- Lock an smc element HOT 1
- Create users with password in InternalDomain HOT 11
- Wrong version number in "smc/__version__" HOT 1
- certificate verification warnings using the INI file for session creation HOT 2
- add an IP configuration on a tunnel interface without IP HOT 1
- ServerBackupTask fails HOT 2
- Viewing an Alias' references does not show the element referenced in the Alias, only the address. HOT 1
- Setting standby mode on a TunnelInterface HOT 5
- AttributeError when importing smc module HOT 9
- smc_monitoring: SessionNotFound HOT 13
- AttributeError: 'NoneType' object has no attribute 'href' HOT 4
- session.login: Failed to get username HOT 4
- role 'Manage Administrator' mandatory for read only API clients HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fp-ngfw-smc-python.