samosamo
October 18th, 2008, 05:40 PM
i'm looking to get a configuration working where i connect to my home LAN while at a wifi coffee shop and i'm able to see all machines on the network. they call it a "road warrior config." currently, after connecting to the vpn, my client is able to ping the openvpn server but not able to ping any other machines on the 192.168 network. i'm concerned that my router is to blame. many of the tutorials i see assume the openvpn server is the same device as the router, but i want to make it clear that all my router is doing right now is forwarding port 1194/udp to the actual openvpn server. does it need additional settings?
The openvpn server is NAT'd behind a router at 192.168.3.1
VPN range: 10.8.0.0
Home range: 192.168.3.0
openvpn server: 10.8.0.1 or 192.168.3.10
port 1194
proto udp
dev tun0
ca keys/samosamo.org/ca.crt
cert keys/samosamo.org/samosamo.org.crt
key keys/samosamo.org/samosamo.org.key
dh keys/samosamo.org/dh2048.pem
server 10.8.0.0 255.255.255.0
crl-verify keys/samosamo.org/crl.pem
ifconfig-pool-persist servers/samosamo.org/logs/ipp.txt
cipher AES-128-CBC
user nobody
group nogroup
status servers/samosamo.org/logs/openvpn-status.log
log-append servers/samosamo.org/logs/openvpn.log
verb 2
mute 20
max-clients 100
keepalive 10 120
client-config-dir /etc/openvpn/servers/samosamo.org/ccd
client-to-client
comp-lzo
persist-key
persist-tun
ccd-exclusive
push "route 192.168.3.0 255.255.255.0"
client
proto udp
dev tun
ca ca.crt
dh dh2048.pem
cert samosamo.crt
key samosamo.key
remote samosamo.org 1194
cipher AES-128-CBC
verb 2
mute 20
keepalive 10 120
comp-lzo
persist-key
persist-tun
float
resolv-retry infinite
nobind
I'm not that good with routing so I'm not sure if I'm doing anything wrong. Some tutorials have info about iptables but since I'm not using iptables, I ignore those steps. Is that my problem?
iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
route printout on openvpn server:
$ route
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
192.168.3.0 * 255.255.255.0 U 0 0 0 eth0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
default tomato 0.0.0.0 UG 100 0 0 eth0
route printout on router machine (not sure if it matters):
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.3.0 * 255.255.255.0 U 0 0 0 br0
24.190.32.0 * 255.255.224.0 U 0 0 0 vlan1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default ool-18be2001.dy 0.0.0.0 UG 0 0 0 vlan1
as of right now, from my VPN connected laptop I can ping 10.8.0.1 as well as 192.168.3.10 (same machine). I am NOT able to ping other machines, for example, the machine I'm typing on now at 192.168.3.13. I can ping this machine from inside the network though.
The openvpn server is NAT'd behind a router at 192.168.3.1
VPN range: 10.8.0.0
Home range: 192.168.3.0
openvpn server: 10.8.0.1 or 192.168.3.10
port 1194
proto udp
dev tun0
ca keys/samosamo.org/ca.crt
cert keys/samosamo.org/samosamo.org.crt
key keys/samosamo.org/samosamo.org.key
dh keys/samosamo.org/dh2048.pem
server 10.8.0.0 255.255.255.0
crl-verify keys/samosamo.org/crl.pem
ifconfig-pool-persist servers/samosamo.org/logs/ipp.txt
cipher AES-128-CBC
user nobody
group nogroup
status servers/samosamo.org/logs/openvpn-status.log
log-append servers/samosamo.org/logs/openvpn.log
verb 2
mute 20
max-clients 100
keepalive 10 120
client-config-dir /etc/openvpn/servers/samosamo.org/ccd
client-to-client
comp-lzo
persist-key
persist-tun
ccd-exclusive
push "route 192.168.3.0 255.255.255.0"
client
proto udp
dev tun
ca ca.crt
dh dh2048.pem
cert samosamo.crt
key samosamo.key
remote samosamo.org 1194
cipher AES-128-CBC
verb 2
mute 20
keepalive 10 120
comp-lzo
persist-key
persist-tun
float
resolv-retry infinite
nobind
I'm not that good with routing so I'm not sure if I'm doing anything wrong. Some tutorials have info about iptables but since I'm not using iptables, I ignore those steps. Is that my problem?
iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
route printout on openvpn server:
$ route
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
192.168.3.0 * 255.255.255.0 U 0 0 0 eth0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
default tomato 0.0.0.0 UG 100 0 0 eth0
route printout on router machine (not sure if it matters):
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.3.0 * 255.255.255.0 U 0 0 0 br0
24.190.32.0 * 255.255.224.0 U 0 0 0 vlan1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default ool-18be2001.dy 0.0.0.0 UG 0 0 0 vlan1
as of right now, from my VPN connected laptop I can ping 10.8.0.1 as well as 192.168.3.10 (same machine). I am NOT able to ping other machines, for example, the machine I'm typing on now at 192.168.3.13. I can ping this machine from inside the network though.