Hi all!
I’ve set up a bridged VPN with OpenVPN. I have a single private network (192.168.1.0/24) where the server is.
The server.conf file is as follows:
port 1194
proto udp
dev tap
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/my_server_certificate.crt
key /etc/openvpn/easy-rsa/keys/my_server_key.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
ifconfig-pool-persist ipp.txt
server-bridge 192.168.1.254 255.255.255.0 192.168.1.32 192.168.1.63
keepalive 10 120
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 3
Connecting with the client I manage to get the message
Initialization Sequence Completed
Running ifconfig on the client I can see that the tap interface got the expected IP address (192.168.1.32) from the remote private network.
Problem is that I can’t reach anyone.
Ping says Destination Host Unreachable.
On the log I have (192.168.1.67 is the server, 192.168.1.32 is the client):
Oct 14 16:46:34 MV-SERVER01 kernel: martian source 192.168.1.67 from 192.168.1.32, on dev tap0
Oct 14 16:46:34 MV-SERVER01 kernel: ll header: ff:ff:ff:ff:ff:ff:5e:44:da:d6:c8:4f:08:06
I’ve add rules to iptables:
iptables -A INPUT -i tap+ -j ACCEPT
iptables -A FORWARD -i tap+ -j ACCEPT
But didn’t solve the problem.
Any ideas?
Best regrads,
Jorge