I am trying to setup my OpenVPN client/server to use the obfsproxy and I have run into a few problems.
The client/server setup has been working fine before trying the obfsproxy.
I have reached a point where I can connect to my server through the obfsproxy but then unable to connect to outside addresses, example unable to ping 8.8.8.8 ...
The connection will then disconnect after about a minute "Inactivity timeout", which is weird because "--inactive" is off by default, I also tried explicitly set "--inactive 0" but still it times out, presumably this won't be a problem when I am able to connect to external addresses.
The DNS server IP's are pushed and updated as expected, checked /etc/resolv.conf is changing as expected.
I think maybe I have routing problem, but not sure how to test the theory ...
Any suggestions how to check routing is setup correctly would be very much appreciated ...
Server side setup ---
VPN_Server_IP = A.B.C.D
tried both of these ...
Code: Select all
obfsproxy --log-file=obfsproxy.log --log-min-severity=info obfs3 --dest=127.0.0.1:1194 server 0.0.0.0:21194 &
Code: Select all
obfsproxy --log-file=obfsproxy.log --log-min-severity=info obfs3 --dest=127.0.0.1:1194 server A.B.C.D:21194 &
Code: Select all
iptables -A INPUT -i eth0 -p tcp -m --dport 21194 -j ACCEPT
Code: Select all
port 1194
Code: Select all
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 A.B.C.254 0.0.0.0 UG 0 0 0 eth0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun1
A.B.C.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Code: Select all
obfsproxy --log-file=obfsproxy.log --log-min-severity=info obfs3 socks 127.0.0.1:10194 &
Code: Select all
remote VPN_Server_IP 21194
proto tcp
socks-proxy 127.0.0.1 10194
socks-proxy-retry
Code: Select all
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.8.0.34 0.0.0.0 UG 0 0 0 tun0
0.0.0.0 172.31.8.1 0.0.0.0 UG 0 0 0 wlan0
10.8.0.1 10.8.0.34 255.255.255.255 UGH 0 0 0 tun0
10.8.0.33 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
10.8.0.34 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
127.0.0.1 172.31.8.1 255.255.255.255 UGH 0 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlan0
Code: Select all
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether ec:f4:bb:65:ea:ad txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xf7800000-f7820000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 4297 bytes 501861 (490.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4297 bytes 501861 (490.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.8.0.33 netmask 255.255.255.255 destination 10.8.0.34
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 100 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 36 bytes 2649 (2.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.31.8.210 netmask 255.255.248.0 broadcast 172.31.15.255
inet6 fe80::3ea9:f4ff:fea7:da8c prefixlen 64 scopeid 0x20<link>
ether 3c:a9:f4:a7:da:8c txqueuelen 1000 (Ethernet)
RX packets 28206 bytes 4168156 (3.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4505 bytes 688565 (672.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0