Bald0z
2007-03-28 14:23:56 UTC
Hi, I have OpenVPN configured on a Linux server and on a Windows client.
The Linux server has this configuration:
eth0 WAN public_ip/24
eth1 LAN 192.168.0.60/24
tun0 VPN 172.16.0.1/24
The client has this configuration:
eth0 WAN public_ip/24
tun0 VPN 172.16.0.10/30
The LAN network on the server is routed on the client with a PUSH route command in the server.conf .
On the LAN gateway (192.169.0.254) there's a static route for 172.16.0.0/24 network to 192.168.0.60 gateway (the VPN server).
So, the problem is:
PING 192.168.0.1 from the client WORKS (notice that .1 is another machine on the LAN than the actual VPN server which is .60)
any other kind of connection doesn't work.
I've run properly edited ./firewall.sh on the server so iptables should be setup. I've enabled IP_FORWARDING on the server.
Notice tcpdump output:
linux:/openvpn # tcpdump -i tun0
tcpdump: listening on tun0
16:10:54.281974 172.16.0.10 > 192.168.0.1: icmp: echo request
16:10:54.698735 192.168.0.1 > 172.16.0.10: icmp: echo reply
16:11:16.438531 172.16.0.10.4246 > 192.168.0.1.ms-wbt-server: S 3687217830:3687217830(0) win 65535 <mss 1350,nop,wscale 3,nop,nop,sackOK> (DF)
16:11:19.469585 172.16.0.10.4246 > 192.168.0.1.ms-wbt-server: S 3687217830:3687217830(0) win 65535 <mss 1350,nop,wscale 3,nop,nop,sackOK> (DF)
16:11:25.485613 172.16.0.10.4246 > 192.168.0.1.ms-wbt-server: S 3687217830:3687217830(0) win 65535 <mss 1350,nop,wscale 3,nop,nop,sackOK> (DF)
The first two lines logs a successful PING from the VPN client to a machine in the server's LAN.
The last three lines logs retries of a TCP connection for Windows Remote Desktop. That's just an example. Also netbios shares aren't working, and many other stuff.
On the LAN gateway, a message like this is present on the log every time a TCP connection is tried:
rule="internal policy" src=192.168.0.1 dst=172.16.0.10 proto=1826/tcp sport=3389 dport=1826 indev=0 inport=0(PRIVATE) rc=104 msg="TCP SYN checking: connection not established yet [-A--S-], firewall drop"
What I can't understand is why ICMP traffic works (so IP is okay, and routing should be okay too) but TCP isn't . It looks as a firewall issue, but the firewall is disabled on the TAP interface on the XP client and the iptables firewall on Linux is configured properly (I suppose, suggestions might help).
Thanks a lot for helping,
I'm really lost, already tried to reinstall and reconfigure OpenVPN from scratch on two different servers, and there's always the same problem.
The Linux server has this configuration:
eth0 WAN public_ip/24
eth1 LAN 192.168.0.60/24
tun0 VPN 172.16.0.1/24
The client has this configuration:
eth0 WAN public_ip/24
tun0 VPN 172.16.0.10/30
The LAN network on the server is routed on the client with a PUSH route command in the server.conf .
On the LAN gateway (192.169.0.254) there's a static route for 172.16.0.0/24 network to 192.168.0.60 gateway (the VPN server).
So, the problem is:
PING 192.168.0.1 from the client WORKS (notice that .1 is another machine on the LAN than the actual VPN server which is .60)
any other kind of connection doesn't work.
I've run properly edited ./firewall.sh on the server so iptables should be setup. I've enabled IP_FORWARDING on the server.
Notice tcpdump output:
linux:/openvpn # tcpdump -i tun0
tcpdump: listening on tun0
16:10:54.281974 172.16.0.10 > 192.168.0.1: icmp: echo request
16:10:54.698735 192.168.0.1 > 172.16.0.10: icmp: echo reply
16:11:16.438531 172.16.0.10.4246 > 192.168.0.1.ms-wbt-server: S 3687217830:3687217830(0) win 65535 <mss 1350,nop,wscale 3,nop,nop,sackOK> (DF)
16:11:19.469585 172.16.0.10.4246 > 192.168.0.1.ms-wbt-server: S 3687217830:3687217830(0) win 65535 <mss 1350,nop,wscale 3,nop,nop,sackOK> (DF)
16:11:25.485613 172.16.0.10.4246 > 192.168.0.1.ms-wbt-server: S 3687217830:3687217830(0) win 65535 <mss 1350,nop,wscale 3,nop,nop,sackOK> (DF)
The first two lines logs a successful PING from the VPN client to a machine in the server's LAN.
The last three lines logs retries of a TCP connection for Windows Remote Desktop. That's just an example. Also netbios shares aren't working, and many other stuff.
On the LAN gateway, a message like this is present on the log every time a TCP connection is tried:
rule="internal policy" src=192.168.0.1 dst=172.16.0.10 proto=1826/tcp sport=3389 dport=1826 indev=0 inport=0(PRIVATE) rc=104 msg="TCP SYN checking: connection not established yet [-A--S-], firewall drop"
What I can't understand is why ICMP traffic works (so IP is okay, and routing should be okay too) but TCP isn't . It looks as a firewall issue, but the firewall is disabled on the TAP interface on the XP client and the iptables firewall on Linux is configured properly (I suppose, suggestions might help).
Thanks a lot for helping,
I'm really lost, already tried to reinstall and reconfigure OpenVPN from scratch on two different servers, and there's always the same problem.