Force IP adresses to go throught the Server
Posted: Sat Oct 15, 2011 4:45 am
Hello,
I would like to force the traffic from one computer (connected to the network by openvpn to use the Openvpn server to go on some web sites.
Here is an example :
My work ISP gives me an IP address (for example 1.2.3.4)
At home I have another fixed ip address (5.6.7.8).
I want to use a service from my work isp, but the service is firewalled. Only the adress 1.2.3.4 will be able to use the service.
So I have added the lines
push "route 212.71.0.11 255.255.255.255"
push "route 212.71.16.196 255.255.255.255"
by thinking that it would be fine, but it doesn't work.
I have also used the command on my computer and it doesn't work.
route add 212.71.0.11 mask 255.255.255.255 192.168.123.254
route add 212.71.16.196 mask 255.255.255.255 192.168.123.254
Can you please tell me what I am missing?
If I use PPTP instead of openvpn, there is no problem with the command so I suppose I have to do something else for it to work with openvpn.
Thank you
Marc
I would like to force the traffic from one computer (connected to the network by openvpn to use the Openvpn server to go on some web sites.
Here is an example :
My work ISP gives me an IP address (for example 1.2.3.4)
At home I have another fixed ip address (5.6.7.8).
I want to use a service from my work isp, but the service is firewalled. Only the adress 1.2.3.4 will be able to use the service.
So I have added the lines
push "route 212.71.0.11 255.255.255.255"
push "route 212.71.16.196 255.255.255.255"
by thinking that it would be fine, but it doesn't work.
I have also used the command on my computer and it doesn't work.
route add 212.71.0.11 mask 255.255.255.255 192.168.123.254
route add 212.71.16.196 mask 255.255.255.255 192.168.123.254
Can you please tell me what I am missing?
If I use PPTP instead of openvpn, there is no problem with the command so I suppose I have to do something else for it to work with openvpn.
Thank you
Marc