Iptables# Generated by iptables-save v1.4.21 on Mon Feb 1 16:22:39 2016*nat:PREROUTING ACCEPT [1539:95304]:INPUT ACCEPT [1:64]:OUTPUT ACCEPT [121:8033]:POSTROUTING ACCEPT [0:0]-A POSTROUTING -s 10.13.0.0/16 -o eth0 -j MASQUERADECOMMIT# Completed on Mon Feb 1 16:22:39 2016 Interfaceeth0 Link encap:Ethernet HWaddr 06:86:67:97:95:a1 inet addr:10.13.7.66 Bcast:10.13.7.255 Mask:255.255.248.0 inet6 addr: fe80::486:67ff:fe97:95a1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:9001 Metric:1 RX packets:1551696 errors:0 dropped:0 overruns:0 frame:0 TX packets:1208300 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1891622965 (1.8 GB) TX bytes:1894628310 (1.8 GB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:192.168.100.2 P-t-P:192.168.100.2 Mask:255.255.255.0 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) root@ip-10-13-7-66:/etc/openvpn# route -nKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Iface0.0.0.0 10.13.0.1 0.0.0.0 UG 0 0 0 eth010.13.0.0 0.0.0.0 255.255.248.0 U 0 0 0 eth0192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
Comments
0 B
|👍
/👎