I just followed the HOWTO to set up an OpenVPN server,
and I successfully connect to the server from the client.
However, I cannot ping 10.8.0.1 from client with its firewall turned off.
When I used tcpdump -i tun0 to listen the tun0 interface at server side,
I got only ICMP requests but no ICMP replies.
Furthermore, I sometimes got some "Out ethertype Unknown (0x88a2), length 48"
I had veiwed some articles related to this, but I am not familiar to iptables,
so I am not sure what rules I should add into iptables.
Could you help me resolve this problem please?
The following are my configurations:
server.conf
Code: Select all
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
Code: Select all
client,10.8.0.4
Code: Select all
client
dev tun
proto udp
remote a.b.c.d 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
comp-lzo
verb 3
Code: Select all
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere ctstate ESTABLISHED
ACCEPT all -- anywhere !10.9.0.0/16
ACCEPT all -- 10.9.8.0/24 10.9.8.0/24
ACCEPT all -- 10.9.9.0/24 10.9.9.0/24
X-default all -- anywhere anywhere
Y-default all -- anywhere anywhere
ACCEPT all -- 10.9.9.0/24 10.9.9.0/24
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain X-default (1 references)
target prot opt source destination
ACCEPT tcp -- a.b.c.0/24 10.9.8.0/24 tcp dpt:ssh
ACCEPT tcp -- a.b.c.0/24 10.9.8.0/24 tcp dpts:tcpmux:65535
Chain Y-default (1 references)
target prot opt source destination
ACCEPT tcp -- a.b.c.0/24 10.9.9.0/24 tcp dpt:ssh
ACCEPT tcp -- a.b.c.0/24 10.9.9.0/24 tcp dpts:tcpmux:65535
chhsiao