SHARE
TWEET

linux CLI commands

PJO2 Feb 14th, 2020 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top