routing with openvpn on a linux platform

we have a linux server that has an ip of lets say 10.2.4.9 which has openvpn installed and configured to an outside server which has a ip subnet of 16.12.14.0/24. i am able to ping the 10.12.14.0/24 range with no problems on the linux server.

i created a route on my pc, 10.2.4.17...now i can ping 16.12.14.1 but no other ip...what am i missing? i need to be able to ping 16.12.14.5 which is their ftp server, again no problems on the linux server (10.2.4.9)

thanks in advance...
LVL 2
linenchestAsked:
Who is Participating?
 
amitnepalCommented:
Can  you try to accept forwarding on your iptables :

iptables -A FORWARD -i eth0 -j ACCEPT
0
 
amitnepalCommented:
Have you configured ip forwarding on your linux machine ?

What is the output of sysctl -p ?

The link below shows you how to enable IP Forwarding. Try enabling ip forwarding by  putting this value in /etc/sysctl.conf

net.ipv4.ip_forward=1

This link might be helpful :

http://www.amitnepal.com/configure-linux-as-a-router/
0
 
linenchestAuthor Commented:
ok i did  sysctl -p...this is the result

net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.tcp_syncookies = 1
net.ipv4.ip_forward = 1
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
linenchestAuthor Commented:
this is what my route -n shows in linux....


16.12.14.0       0.0.0.0              255.255.255.255  UH   0      0        0 tun0
10.2.4.0     0.0.0.0                   255.255.255.0       U     0      0        0 eth0
16.12.14.0      16.12.14.0          255.255.255.0     UG   0      0        0 tun0
0.0.0.0            10.2.4.250        0.0.0.0                  UG    0      0        0 eth0
0
 
amitnepalCommented:
Do you have anything in iptables ?

Did you say that from linux server you can ping the one that you cannot ping from your windows ip ?
0
 
linenchestAuthor Commented:
yes, from the linux server i can ping anything on the 16.12.14.0 subnet...

iptable shows the following...

iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination        

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination        
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
0
 
linenchestAuthor Commented:
still does not work..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.