Advertisement
Guest User

Untitled

a guest
May 24th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. traceroute to 172.16.1.16 (172.16.1.16), 30 hops max, 60 byte packets
  2. 1 172.16.1.102 (172.16.1.102) 62.661 ms 65.560 ms 65.445 ms
  3. 2 172.16.1.16 (172.16.1.16) 65.623 ms * *
  4.  
  5. root@ip-172-16-1-102:~# traceroute 192.168.1.10
  6. traceroute to 192.168.1.10 (192.168.1.10), 30 hops max, 60 byte packets
  7. 1 * * *
  8. 2 * * *
  9. 3 * * *
  10. 4 * * *
  11. .........
  12. 30 * * *
  13.  
  14. version 2.0
  15.  
  16. config setup
  17. nat_traversal=yes
  18. protostack=netkey
  19. force_keepalive=yes
  20. keep_alive=60
  21. oe=off
  22. nhelpers=0
  23.  
  24. conn AWS2LocalConnection
  25. left=172.16.1.102 #EC2 Private IP
  26. leftsubnets=172.16.0.0/16 #VPC CIDR
  27. leftid=54.201.191.5 #EC2 EIP
  28. leftsourceip=172.16.1.102 #EC2 Private IP
  29. right=71.170.22.8 #My on-prem Router public IP
  30. rightsubnets=192.168.1.0/24 #My on-prem Network
  31. rightid=71.170.22.8 #My on-prem Router public IP
  32. pfs=no
  33. forceencaps=yes
  34. authby=secret
  35. auto=start
  36.  
  37. 71.170.22.8 54.201.191.5: PSK "password"
  38.  
  39. iptables -t nat -A POSTROUTING -s 172.16.0.0/16 ! -d 192.168.1.0/24 -o eth0 -j MASQUERADE
  40.  
  41. version 2.0
  42.  
  43. config setup
  44. nat_traversal=yes
  45. protostack=netkey
  46. force_keepalive=yes
  47. keep_alive=60
  48. oe=off
  49. nhelpers=0
  50.  
  51. conn Local2AWSConnection
  52. type=tunnel
  53. left=192.168.1.100 #Client Local IP
  54. leftsubnets=192.168.1.0/24 #On-prem Network
  55. leftid=71.170.22.8 #Router Public IP
  56. leftsourceip=192.168.1.100 #Client Local IP
  57. right=54.201.191.5 #EC2 EIP
  58. rightsubnets=172.16.0.0/16 #VPC CIDR
  59. rightid=54.201.191.5 #EC2 EIP
  60. pfs=no
  61. forceencaps=yes
  62. authby=secret
  63. auto=start
  64.  
  65. 54.201.191.5 71.170.22.8 : PSK "password"
  66.  
  67. iptables -t nat -A POSTROUTING -s 192.168.1.0/24 ! -d 172.16.0.0/16 -o eth0 -j MASQUERADE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement