Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@OpenWrt:/# cat /etc/config/network
- config 'interface' 'loopback'
- option 'ifname' 'lo'
- option 'proto' 'static'
- option 'ipaddr' '127.0.0.1'
- option 'netmask' '255.0.0.0'
- config 'interface' 'lan'
- option 'ifname' 'eth0'
- option 'type' 'bridge'
- option 'proto' 'static'
- option 'ipaddr' '192.168.1.1'
- option 'netmask' '255.255.255.0'
- option 'stp' '1'
- config 'interface' 'wan'
- option 'ifname' 'eth1'
- option 'proto' 'dhcp'
- config 'switch'
- option 'name' 'rtl8366s'
- option 'reset' '1'
- option 'enable_vlan' '1'
- config 'switch_vlan'
- option 'device' 'rtl8366s'
- option 'vlan' '1'
- option 'ports' '0 1 2 3 5'
- config 'interface' 'vpn'
- option 'server' '192.168.1.2'
- option 'username' 'test'
- option 'password' 'test'
- option 'proto' 'pptp'
- option 'defaultroute' '0'
- config 'route'
- option 'interface' 'vpn'
- option 'target' '10.11.12.0'
- option 'netmask' '255.255.255.0'
- option 'gateway' '10.68.0.1'
- root@OpenWrt:/#
- root@OpenWrt:/# route -n
- Kernel IP routing table
- Destination Gateway Genmask Flags Metric Ref Use Iface
- 192.168.1.2 192.168.1.2 255.255.255.255 UGH 0 0 0 br-lan
- 10.68.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 pptp-vpn
- 10.11.12.0 10.68.0.1 255.255.255.0 UG 0 0 0 pptp-vpn
- 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
- 0.0.0.0 192.168.1.2 0.0.0.0 UG 0 0 0 br-lan
- root@OpenWrt:/# uci -P /var/state show network.vpn
- network.vpn=interface
- network.vpn.server=192.168.1.2
- network.vpn.username=test
- network.vpn.password=test
- network.vpn.proto=pptp
- network.vpn.defaultroute=0
- network.vpn.device=pptp-vpn
- network.vpn.ipaddr=10.68.0.100
- network.vpn.gateway=10.68.0.1
- network.vpn.up=1
- network.vpn.connect_time=261321
- network.vpn.ifname=pptp-vpn
- root@OpenWrt:/# traceroute 8.8.8.8
- traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 38 byte packets
- 1 192.168.1.2 (192.168.1.2) 1.377 ms 2.283 ms 1.143 ms
- 2 uplink.lan (10.11.12.13) 2.361 ms 2.223 ms 2.100 ms
- 3 * * *
- 4 83-169-174-46-isp.superkabel.de (83.169.174.46) 10.852 ms 11.595 ms 14.441 ms
- 5 83-169-183-134-isp.superkabel.de (83.169.183.134) 17.817 ms 14.964 ms 8.598 ms
- 6 83-169-128-74.static.superkabel.de (83.169.128.74) 17.487 ms 14.938 ms 18.214 ms
- 7 83-169-128-57.static.superkabel.de (83.169.128.57) 16.385 ms 22.133 ms 15.066 ms
- 8 83-169-128-61.static.superkabel.de (83.169.128.61) 15.911 ms 21.167 ms 21.826 ms
- 9 209.85.249.184 (209.85.249.184) 20.890 ms 19.639 ms 209.85.249.182 (209.85.249.182) 27.057 ms
- 10 64.233.174.53 (64.233.174.53) 15.414 ms 216.239.48.53 (216.239.48.53) 17.094 ms 64.233.174.29 (64.233.174.29) 16.110 ms
- 11 209.85.250.1 (209.85.250.1) 24.134 ms 209.85.255.245 (209.85.255.245) 27.237 ms 209.85.250.1 (209.85.250.1) 23.105 ms
- 12 google-public-dns-a.google.com (8.8.8.8) 18.124 ms 18.376 ms 15.860 ms
- root@OpenWrt:/# traceroute 10.11.12.13
- traceroute to 10.11.12.13 (10.11.12.13), 30 hops max, 38 byte packets
- 1 10.68.0.1 (10.68.0.1) 14.890 ms 19.843 ms 19.924 ms
- 2 uplink.lan (10.11.12.13) 19.874 ms 19.847 ms 19.913 ms
- root@OpenWrt:/#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement