Advertisement
Alberts00

openwrt softether

Mar 16th, 2015
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.97 KB | None | 0 0
  1. Router interfaces
  2. root@routermad:~# /sbin/ifconfig
  3. br-lan    Link encap:Ethernet  HWaddr C0:4A:00:0A:24:9C
  4.           inet addr:192.168.3.1  Bcast:192.168.3.255  Mask:255.255.255.0
  5.           inet6 addr: fe80::c24a:ff:fe0a:249c/64 Scope:Link
  6.           inet6 addr: fd05:c741:a732::1/60 Scope:Global
  7.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  8.           RX packets:135634940 errors:0 dropped:0 overruns:0 frame:0
  9.           TX packets:154645648 errors:0 dropped:0 overruns:0 carrier:0
  10.           collisions:0 txqueuelen:0
  11.           RX bytes:97989332412 (91.2 GiB)  TX bytes:145456486266 (135.4 GiB)
  12.  
  13. eth0      Link encap:Ethernet  HWaddr 20:CF:30:D3:38:26
  14.           inet addr:78.84.67.xxx Bcast:78.84.95.255  Mask:255.255.224.0
  15.           inet6 addr: fe80::22cf:30ff:fed3:3826/64 Scope:Link
  16.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  17.           RX packets:270256890 errors:0 dropped:0 overruns:11 frame:0
  18.           TX packets:262913517 errors:0 dropped:0 overruns:0 carrier:0
  19.           collisions:0 txqueuelen:1000
  20.           RX bytes:2327987803 (2.1 GiB)  TX bytes:2522464887 (2.3 GiB)
  21.           Interrupt:4
  22.  
  23. eth1      Link encap:Ethernet  HWaddr C0:4A:00:0A:24:9C
  24.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  25.           RX packets:44806113 errors:0 dropped:56 overruns:270 frame:0
  26.           TX packets:47252094 errors:0 dropped:0 overruns:0 carrier:0
  27.           collisions:0 txqueuelen:1000
  28.           RX bytes:1255337153 (1.1 GiB)  TX bytes:1372107395 (1.2 GiB)
  29.           Interrupt:5
  30.  
  31. lo        Link encap:Local Loopback
  32.           inet addr:127.0.0.1  Mask:255.0.0.0
  33.           inet6 addr: ::1/128 Scope:Host
  34.           UP LOOPBACK RUNNING  MTU:65536  Metric:1
  35.           RX packets:382570 errors:0 dropped:0 overruns:0 frame:0
  36.           TX packets:382570 errors:0 dropped:0 overruns:0 carrier:0
  37.           collisions:0 txqueuelen:0
  38.           RX bytes:33687370 (32.1 MiB)  TX bytes:33687370 (32.1 MiB)
  39.  
  40. tap_soft  Link encap:Ethernet  HWaddr 00:AC:02:B1:41:B5 <----------------------------------- TAP interface created with softether
  41.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  42.           RX packets:92453263 errors:0 dropped:442 overruns:0 frame:0
  43.           TX packets:109029053 errors:0 dropped:7913 overruns:0 carrier:0
  44.           collisions:0 txqueuelen:500
  45.           RX bytes:4261363555 (3.9 GiB)  TX bytes:2449961720 (2.2 GiB)
  46.  
  47. wlan0     Link encap:Ethernet  HWaddr C0:4A:00:0A:24:9C
  48.           inet6 addr: fe80::c24a:ff:fe0a:249c/64 Scope:Link
  49.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  50.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  51.           TX packets:470955 errors:0 dropped:0 overruns:0 carrier:0
  52.           collisions:0 txqueuelen:1000
  53.           RX bytes:0 (0.0 B)  TX bytes:40844617 (38.9 MiB)
  54.  
  55.  
  56.     Bridge setup (There is only one DHCP server, which gives out addresses for LAN and VPN clients, it is possible to configure seperate addresses for VPN and LAN, but I was not planning on doing that, because this configuration suits my use better.)
  57.  
  58. root@routermad:~# brctl show
  59. bridge name     bridge id               STP enabled     interfaces
  60. br-lan          7fff.c04a000a249c       no              eth1
  61.                                                         wlan0
  62.                                                         tap_soft <-- Softether TAP interface
  63.  
  64.     http://i.imgur.com/34VKi2a.png Softether TAP configuration.
  65.  
  66.     This is what it looks like on VPN clients side
  67.  
  68. Ethernet adapter Softether_1 - VPN Client:
  69.  
  70.    Connection-specific DNS Suffix  . : lan
  71.    IPv6 Address. . . . . . . . . . . : fd05:c741:a732::ecf
  72.    IPv6 Address. . . . . . . . . . . : fd05:c741:a732:0:f124:e834:bcdb:4da7
  73.    Temporary IPv6 Address. . . . . . : fd05:c741:a732:0:a9da:9486:55ae:e97c
  74.    Link-local IPv6 Address . . . . . : fe80::f124:e834:bcdb:4da7%13
  75.    IPv4 Address. . . . . . . . . . . : 192.168.3.200
  76.    Subnet Mask . . . . . . . . . . . : 255.255.255.0
  77.    Default Gateway . . . . . . . . . : 192.168.3.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement