Hello, I am trying to setup OpenVPN to connect two networks together. Here is the situation:
Server net
192.168.1.0/24
server IP 192.168.1.10
Client net
192.168.2.0/24
client IP 192.168.2.1
VPN net
10.8.0.0/24
I have the tunnel devices set up on both machines, as well as IP forwarding. The server is a Gentoo box, and runs as a Samba server on its network. The client box is running Fedora Core 2, and is a gateway for my other network, and does NAT and firewalling, etc. Port 1194 is forwarded to the server.
My problem is that I can't even ping the server from the client machine, when using the server's VPN IP (the one of the server's tun interface). When I try, I get this error:
ping: sendmsg: Operation not permitted
This is directly from the terminal of the client machine; I plan to worry about forwarding the packets between the networks after I can get the client and server to talk to each other properly.

Here is the routing table I get on the client:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.0.5 * 255.255.255.255 UH 0 0 0 tun0
10.8.0.1 10.8.0.5 255.255.255.255 UGH 0 0 0 tun0
129.21.109.0 * 255.255.255.128 U 0 0 0 eth0
10.0.0.0 10.8.0.5 255.255.255.0 UG 0 0 0 tun0
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1
10.8.0.0 10.8.0.5 255.255.255.0 UG 0 0 0 tun0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default rit-dorm1-gw-04 0.0.0.0 UG 0 0 0 eth0
Here is the routing table on the server:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.0.2 * 255.255.255.255 UH 0 0 0 tun0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default router.whatsmyk 0.0.0.0 UG 0 0 0 eth0
Here is the config file for the server:
Code:
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
push "route 10.8.0.0 255.255.255.0"
push "route 10.0.0.0 255.255.255.0"
keepalive 10 120
comp-lzo
user openvpn
groupe openvpn
persist-key
persist-tun
status openvpn-status.log
verb 3
Here is the config for the client:
Code:
client
dev tun
proto udp
remote my.vpn.server 1194
resolv-retry infinite
nobind
user nobody
group nobody
persist-key
persist-tunca ca.crt
cert badger.crt
key badger.key
ns-cert-type server
comp-lzo
verb 3
ifconfig 10.0.0.2 10.0.0.1
Can anybody who's gotten this to work post their config? Thanks for any help.