OpenWrt Forum Archive

Topic: Openvpn routing

The content of this topic has been archived on 4 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, ive just installed openvpn on my Netgear wgt634u running Kamikaze and set up tunneling to forward traffic through port ssh. Ive set it up using tun and everything connects fine.

However only the router has internet access and it isnt routing it through the wireless/wired ports.

I can use elinks and surf the web text style but it drops out on anything else connected

Any ideas?

You have posted little other than "it's not working" without config files, or diag output of netstat, iptables, etc.  Can you see where that MIGHT be a problem for someone trying to understand what your issue is?  Have you cruised the OpenVPN documentation and forums for answers?

Recommended background reading:
http://www.catb.org/~esr/faqs/smart-questions.html

(Last edited by vincentfox on 25 Jun 2007, 01:00)

Hey, sorry for not including much information i thought it would just requier bridging or something.

My routes before

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 br-lan
172.xx.0.0      *               255.255.0.0     U     0      0        0 eth0.1
default         172.xx.0.xx      0.0.0.0         UG    0      0        0 eth0.1

Net stat before openvpn after ssh to server

Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 172.xx.xx.xxx:3633       server.ip:22 ESTABLISHED
netstat: no support for 'AF INET6 (tcp)' on this system
udp        0      0 172.xx.xx.xxx:123        fiordland.ubuntu.co:123 ESTABLISHED
netstat: no support for 'AF INET6 (udp)' on this system
netstat: no support for 'AF INET6 (raw)' on this system
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node Path
unix  7      [ ]         DGRAM                    400    /dev/log
unix  2      [ ]         DGRAM                    1119
unix  2      [ ]         DGRAM                    1077
unix  2      [ ]         DGRAM                    1070
unix  3      [ ]         STREAM     CONNECTED     810
unix  3      [ ]         STREAM     CONNECTED     809
unix  2      [ ]         DGRAM                    807
unix  2      [ ]         DGRAM                    404

After opening vpn

Netstat

Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 localhost:4319          localhost:1194          ESTABLISHED
tcp        0      0 172.xx.xx.xx:3633       server.ip:22 ESTABLISHED
tcp        0      0 localhost:1194          localhost:4319          ESTABLISHED
netstat: no support for 'AF INET6 (tcp)' on this system
udp        0      0 172.xx.x.xx:123        fiordland.ubuntu.co:123 ESTABLISHED
netstat: no support for 'AF INET6 (udp)' on this system
netstat: no support for 'AF INET6 (raw)' on this system
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node Path
unix  8      [ ]         DGRAM                    400    /dev/log
unix  2      [ ]         DGRAM                    1254
unix  2      [ ]         DGRAM                    1119
unix  2      [ ]         DGRAM                    1077
unix  2      [ ]         DGRAM                    1070
unix  3      [ ]         STREAM     CONNECTED     810
unix  3      [ ]         STREAM     CONNECTED     809
unix  2      [ ]         DGRAM                    807
unix  2      [ ]         DGRAM                    404

Route

Kernel IP routing table
Destination     Gateway         Genmask                Flags Metric Ref    Use Iface
server.ip        172.xx.0.xx     255.255.255.255     UGH   0      0        0 eth0.1
10.8.0.1         10.8.0.17        255.255.255.255      UGH   0      0        0 tun0
10.8.0.17       *                    255.255.255.255      UH    0      0        0 tun0
127.0.0.1       172.xx.0.xx     255.255.255.255     UGH   0      0        0 eth0.1
192.168.1.0    *                    255.255.255.0        U     0      0        0 br-lan
172.18.0.0      *                    255.255.0.0            U     0      0        0 eth0.1
default           10.8.0.17         0.0.0.0                  UG    0      0        0 tun0

Hope this helps. If you need any more information let me know.

I just seem to need to bridge it with the lan and wlan

Thanks

The discussion might have continued from here.