can not acces server from the internet

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
McLinux
OpenVpn Newbie
Posts: 9
Joined: Mon Apr 23, 2012 12:47 pm

can not acces server from the internet

Post by McLinux » Mon Apr 23, 2012 1:24 pm

I can not connect to te server via the internet.
When I set remote 192.168.1.65 1194 in client.conf then I can ssh to the server.
When I seer my external ip and I start the client the I get the next error:

Mon Apr 23 15:18:10 2012 read UDPv4: Connection reset by peer (WSAECONNRESET) (c
ode=10054)

XP pro ip: 10.211.55.9
OpenVPN installed.
firewall disabled
XP runs in Mac OSX with parallels with ip: 10.211.55.9

In Windows route print:

===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 ff 1e b0 5d ab ...... TAP-Win32 Adapter V9
0x10004 ...00 1c 42 81 6d 24 ...... Parallels Ethernet Adapter
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.211.55.1 10.211.55.9 10
10.211.55.0 255.255.255.0 10.211.55.9 10.211.55.9 10
10.211.55.9 255.255.255.255 127.0.0.1 127.0.0.1 10
10.255.255.255 255.255.255.255 10.211.55.9 10.211.55.9 10
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
224.0.0.0 240.0.0.0 10.211.55.9 10.211.55.9 10
255.255.255.255 255.255.255.255 10.211.55.9 10.211.55.9 1
255.255.255.255 255.255.255.255 10.211.55.9 2 1
Default Gateway: 10.211.55.1
===========================================================================
Persistent Routes:
None

In MacOSX:
In firewall accept all connections for parallels.

ip macOSX: 192.168.1.67
Router Huawei port forwarding:

protocol: udp
van poort: 1194
tot poort: 1194
local ip address: 192.168.1.65
naar poort 1194
name: vpn

Ubuntu server ip 192.168.1.65
OpenVPN ip: 10.8.0.1
iptables -L


root@file-server:~# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:rootd
ACCEPT tcp -- anywhere anywhere tcp dpt:openvpn
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT udp -- anywhere anywhere udp dpt:openvpn
ACCEPT tcp -- anywhere anywhere tcp flags:ACK/ACK
ACCEPT udp -- anywhere anywhere udp spt:domain dpts:1024:65535
ACCEPT icmp -- anywhere anywhere icmp echo-reply
ACCEPT icmp -- anywhere anywhere icmp destination-unreachable
ACCEPT icmp -- anywhere anywhere icmp source-quench
ACCEPT icmp -- anywhere anywhere icmp time-exceeded
ACCEPT icmp -- anywhere anywhere icmp parameter-problem
ACCEPT icmp -- anywhere anywhere icmp echo-request
ACCEPT udp -- anywhere anywhere udp dpts:33434:33523
ACCEPT all -- anywhere anywhere
ACCEPT udp -- anywhere anywhere udp dpt:rootd
ACCEPT tcp -- anywhere anywhere tcp dpt:rootd

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- 10.8.0.0/24 anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
ACCEPT all -- anywhere anywhere
ACCEPT all -- 192.168.1.0/24 10.8.0.0/24
ACCEPT all -- 10.8.0.0/24 192.168.1.0/24

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp spt:rootd

Post Reply