Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
- inet addr:10.23.8.183 P-t-P:10.23.8.183 Mask:255.255.255.255
- inet6 addr: fe80::7fb2:5598:b02e:e541/64 Scope:Link
- UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1410 Metric:1
- RX packets:24 errors:0 dropped:0 overruns:0 frame:0
- TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:500
- RX bytes:7005 (7.0 KB) TX bytes:3243 (3.2 KB)
- wlp3s0 Link encap:Ethernet HWaddr 60:67:20:36:6f:a4
- inet addr:10.9.8.3 Bcast:10.9.8.255 Mask:255.255.255.0
- inet6 addr: fe80::8e96:7526:ff54:d1be/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:22511502 errors:0 dropped:0 overruns:0 frame:0
- TX packets:16052631 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:24451442281 (24.4 GB) TX bytes:6038264731 (6.0 GB)
- ip r a 192.168.0.0/24 via 10.9.8.3 dev eth0
- route ADD 192.168.0.0 MASK 255.255.255.0 10.9.8.3
- sysctl net.ipv4.conf.all.forwarding=1
- net.ipv4.conf.all.forwarding = 1
- iptables -L FORWARD -nv
- iptables -I FORWARD -i wlp3s0 -d 192.168.0.0/24 -j ACCEPT
- iptables -I FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
- iptables -t nat -I POSTROUTING -o tun0 -j MASQUERADE
Add Comment
Please, Sign In to add comment