Advertisement
PJO2

linux CLI commands

Feb 14th, 2020
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. swanctl --terminate --ike flex
  2.  
  3. ip tunnel del ipsec0
  4.  
  5. ip tunnel add ipsec0 local 172.16.63.65 remote 172.16.63.63 mode vti key 100
  6. ip link set dev ipsec0 up
  7. sysctl -w net.ipv4.conf.ipsec0.disable_policy=1
  8. sysctl -w net.ipv4.conf.ipsec0.rp_filter=0
  9. sysctl -w net.ipv4.ip_forward=1
  10.  
  11. swanctl --load-creds && swanctl --load-conns flex
  12. swanctl --initiate --child flex
  13.  
  14. # remote tunnel endpoint
  15. ip route add 172.30.0.254/32 dev ipsec0
  16. # network behind the tunnel
  17. ip route add 192.168.77.0/24 dev ipsec0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement