chris-(E-Mail Removed) wrote:
> Florian <florian-(E-Mail Removed)> wrote:
>> I have a problem with my OpenVPN connection. When i configure my tunnel
>> with protocol tcp, all works fine. When I change the protocol to udp,
>> the tunnel not work.
>
>> I have one router between my server and my internet connection.
>> I just analyzed with a sniffer (tcpdump) my internet traffic. When a
>> OpenVPN Client open a session to my OpenVPN Server I see the udp packets
>> from the OpenVPN Client but my OpenVPN server is not answering.
>> The udp traffic come in but it still going no traffic out !
>
> 1. You have configured the corresponding UDP service and ports at *both*
> ends, haven't you...?
>
> 2. You say you've sniffed the traffic. You need to do this on the client
> and the server. Can you confirm that OpenVPN packets are arriving at the
> server from the client? What about traffic the other way?
>
> Chris
My sniffer output and the client Config
16:20:26.260485 IP 192.168.177.103.openvpn > 192.168.100.1.openvpn: UDP,
length 42
16:20:28.622131 IP 192.168.177.103.openvpn > 192.168.100.1.openvpn: UDP,
length 42
16:20:34.867149 IP 192.168.177.103.openvpn > 192.168.100.1.openvpn: UDP,
length 42
#################### Client Config #########################
client
tls-client
dev tap
proto udp
remote 192.168.100.1 1194
nobind
user nobody
group nogroup
persist-key
persist-tun
ca ca.crt
cert OpenVPN-Client2.crt
key OpenVPN-Client2.key
tls-auth ta.key 1
comp-lzo
verb 3
#################### Client Config #########################
Sniffer output on the OpenVPN Server
16:18:12.002325 IP 192.168.177.103.1194 > 172.20.20.2.1194: UDP, length 42
16:18:14.071972 IP 192.168.177.103.1194 > 172.20.20.2.1194: UDP, length 42
IP 172.20.20.2 was NATed (internal Server IP who run OpenVPN)
#################### Server Config #########################
mode server
tls-server
port 1194
proto udp
dev tap
client-to-client
ca easy-rsa/keys/ca.crt
cert easy-rsa/keys/OpenVPN-Server.crt
key easy-rsa/keys/OpenVPN-Server.key
tls-auth ta.key 0
dh easy-rsa/keys/dh1024.pem
ifconfig 172.20.21.1 255.255.255.224
# Routing Information
push "route 192.168.0.0 255.255.255.0"
push "route 192.168.1.0 255.255.255.0"
# Client Config
client-config-dir ccd
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 6
#################### Server Config #########################
The Client packets arriving at the OpenVPN Server.