Temat: Łączenie interfejsów pptp-VPN
Witam
podczas tworzenia tunelu między dwoma routerami opartymi na OpenWRT przy pomocy PPTP stanąłem na łączeniu interfejsów w routerze kliencie.
Klienta PPTP na routerze 2 uruchomiłem wg. tego: http://openrouter.info/forum/viewtopic. … &t=470
Połączenie zostało nawiązane, pingi latają bez przeszkód
br-lan Link encap:Ethernet HWaddr 2C:39:96:11:7F:5A
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::2e39:96ff:fe11:7f5a/64 Scope:Link
inet6 addr: fde9:eeab:a476::1/60 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3646 errors:0 dropped:0 overruns:0 frame:0
TX packets:2359 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:513260 (501.2 KiB) TX bytes:643511 (628.4 KiB)eth0 Link encap:Ethernet HWaddr 2C:39:96:11:7F:5A
inet6 addr: fe80::2e39:96ff:fe11:7f5a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3834 errors:0 dropped:35 overruns:0 frame:0
TX packets:2368 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:614080 (599.6 KiB) TX bytes:660952 (645.4 KiB)eth0.1 Link encap:Ethernet HWaddr 2C:39:96:11:7F:5A
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3646 errors:0 dropped:0 overruns:0 frame:0
TX packets:2359 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:513260 (501.2 KiB) TX bytes:643511 (628.4 KiB)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:930 errors:0 dropped:0 overruns:0 frame:0
TX packets:930 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:64432 (62.9 KiB) TX bytes:64432 (62.9 KiB)pptp-vpn Link encap:Point-to-Point Protocol
inet addr:192.168.1.81 P-t-P:192.169.1.80 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1482 Metric:1
RX packets:170 errors:0 dropped:0 overruns:0 frame:0
TX packets:249 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:38868 (37.9 KiB) TX bytes:52793 (51.5 KiB)usb0 Link encap:Ethernet HWaddr 96:CF:DC:16:07:FF
inet addr:192.168.42.63 Bcast:192.168.42.255 Mask:255.255.255.0
inet6 addr: fe80::94cf:dcff:fe16:7ff/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1134 errors:0 dropped:0 overruns:0 frame:0
TX packets:1125 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:135918 (132.7 KiB) TX bytes:193419 (188.8 KiB)
network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'config globals 'globals'
option ula_prefix 'fde9:eeab:a476::/48'config interface 'lan'
option ifname 'eth0.1'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.0.1'config switch
option name 'eth0'
option reset '1'
option enable_vlan '1'config switch_vlan
option device 'eth0'
option vlan '1'
option ports '1 2 8t'config switch_vlan
option device 'eth0'
option vlan '2'
option ports '0 8t'config switch_vlan
option device 'eth0'
option vlan '3'
option ports '3 8t'config interface 'vpn'
option proto 'pptp'
option server '217.197.74.XXX'
option username 'XYZ'
option password 'XYZ'config interface 'WAN'
option proto 'dhcp'
option ifname 'usb0'
Niestety przy próbie przypisania interfejsu pptp-vpn do br-lan lub nowo utworzonego br0 występuje błąd
root@OpenWrt:~# brctl show
bridge name bridge id STP enabled interfaces
br-lan 7fff.2c3996117f5a no eth0.1
br0 8000.000000000000 no
root@OpenWrt:~# brctl addif br0 vpn
brctl: iface vpn: No such device
root@OpenWrt:~# brctl addif br0 pptp-vpn
brctl: bridge br0: Invalid argument
proszę o jakieś wskazówki lub tutorial jak sprawić żeby urządzenia podłączone do routera-klienta byly w podsieci routera-serwera.