Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. root@OpenWrt:/# cat /etc/config/network
  2.  
  3. config 'interface' 'loopback'
  4. option 'ifname' 'lo'
  5. option 'proto' 'static'
  6. option 'ipaddr' '127.0.0.1'
  7. option 'netmask' '255.0.0.0'
  8.  
  9. config 'interface' 'lan'
  10. option 'ifname' 'eth0'
  11. option 'type' 'bridge'
  12. option 'proto' 'static'
  13. option 'ipaddr' '192.168.1.1'
  14. option 'netmask' '255.255.255.0'
  15. option 'stp' '1'
  16.  
  17. config 'interface' 'wan'
  18. option 'ifname' 'eth1'
  19. option 'proto' 'dhcp'
  20.  
  21. config 'switch'
  22. option 'name' 'rtl8366s'
  23. option 'reset' '1'
  24. option 'enable_vlan' '1'
  25.  
  26. config 'switch_vlan'
  27. option 'device' 'rtl8366s'
  28. option 'vlan' '1'
  29. option 'ports' '0 1 2 3 5'
  30.  
  31. config 'interface' 'vpn'
  32. option 'server' '192.168.1.2'
  33. option 'username' 'test'
  34. option 'password' 'test'
  35. option 'proto' 'pptp'
  36. option 'defaultroute' '0'
  37.  
  38. config 'route'
  39. option 'interface' 'vpn'
  40. option 'target' '10.11.12.0'
  41. option 'netmask' '255.255.255.0'
  42. option 'gateway' '10.68.0.1'
  43.  
  44. root@OpenWrt:/#
  45. root@OpenWrt:/# route -n
  46. Kernel IP routing table
  47. Destination Gateway Genmask Flags Metric Ref Use Iface
  48. 192.168.1.2 192.168.1.2 255.255.255.255 UGH 0 0 0 br-lan
  49. 10.68.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 pptp-vpn
  50. 10.11.12.0 10.68.0.1 255.255.255.0 UG 0 0 0 pptp-vpn
  51. 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
  52. 0.0.0.0 192.168.1.2 0.0.0.0 UG 0 0 0 br-lan
  53. root@OpenWrt:/# uci -P /var/state show network.vpn
  54. network.vpn=interface
  55. network.vpn.server=192.168.1.2
  56. network.vpn.username=test
  57. network.vpn.password=test
  58. network.vpn.proto=pptp
  59. network.vpn.defaultroute=0
  60. network.vpn.device=pptp-vpn
  61. network.vpn.ipaddr=10.68.0.100
  62. network.vpn.gateway=10.68.0.1
  63. network.vpn.up=1
  64. network.vpn.connect_time=261321
  65. network.vpn.ifname=pptp-vpn
  66. root@OpenWrt:/# traceroute 8.8.8.8
  67. traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 38 byte packets
  68. 1 192.168.1.2 (192.168.1.2) 1.377 ms 2.283 ms 1.143 ms
  69. 2 uplink.lan (10.11.12.13) 2.361 ms 2.223 ms 2.100 ms
  70. 3 * * *
  71. 4 83-169-174-46-isp.superkabel.de (83.169.174.46) 10.852 ms 11.595 ms 14.441 ms
  72. 5 83-169-183-134-isp.superkabel.de (83.169.183.134) 17.817 ms 14.964 ms 8.598 ms
  73. 6 83-169-128-74.static.superkabel.de (83.169.128.74) 17.487 ms 14.938 ms 18.214 ms
  74. 7 83-169-128-57.static.superkabel.de (83.169.128.57) 16.385 ms 22.133 ms 15.066 ms
  75. 8 83-169-128-61.static.superkabel.de (83.169.128.61) 15.911 ms 21.167 ms 21.826 ms
  76. 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
  77. 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
  78. 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
  79. 12 google-public-dns-a.google.com (8.8.8.8) 18.124 ms 18.376 ms 15.860 ms
  80. root@OpenWrt:/# traceroute 10.11.12.13
  81. traceroute to 10.11.12.13 (10.11.12.13), 30 hops max, 38 byte packets
  82. 1 10.68.0.1 (10.68.0.1) 14.890 ms 19.843 ms 19.924 ms
  83. 2 uplink.lan (10.11.12.13) 19.874 ms 19.847 ms 19.913 ms
  84. root@OpenWrt:/#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement