Guest User

Untitled

a guest
May 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
  2. inet addr:10.23.8.183 P-t-P:10.23.8.183 Mask:255.255.255.255
  3. inet6 addr: fe80::7fb2:5598:b02e:e541/64 Scope:Link
  4. UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1410 Metric:1
  5. RX packets:24 errors:0 dropped:0 overruns:0 frame:0
  6. TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
  7. collisions:0 txqueuelen:500
  8. RX bytes:7005 (7.0 KB) TX bytes:3243 (3.2 KB)
  9.  
  10. wlp3s0 Link encap:Ethernet HWaddr 60:67:20:36:6f:a4
  11. inet addr:10.9.8.3 Bcast:10.9.8.255 Mask:255.255.255.0
  12. inet6 addr: fe80::8e96:7526:ff54:d1be/64 Scope:Link
  13. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  14. RX packets:22511502 errors:0 dropped:0 overruns:0 frame:0
  15. TX packets:16052631 errors:0 dropped:0 overruns:0 carrier:0
  16. collisions:0 txqueuelen:1000
  17. RX bytes:24451442281 (24.4 GB) TX bytes:6038264731 (6.0 GB)
  18.  
  19. ip r a 192.168.0.0/24 via 10.9.8.3 dev eth0
  20.  
  21. route ADD 192.168.0.0 MASK 255.255.255.0 10.9.8.3
  22.  
  23. sysctl net.ipv4.conf.all.forwarding=1
  24.  
  25. net.ipv4.conf.all.forwarding = 1
  26.  
  27. iptables -L FORWARD -nv
  28.  
  29. iptables -I FORWARD -i wlp3s0 -d 192.168.0.0/24 -j ACCEPT
  30. iptables -I FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
  31.  
  32. iptables -t nat -I POSTROUTING -o tun0 -j MASQUERADE
Add Comment
Please, Sign In to add comment