Page 1 of 1

Routing problem

Posted: Fri Dec 23, 2011 10:48 am
by zmain
Hello guys, i have subscibes a Seedbox service which enables VPN Connetions.
I want to use my VPN with a download station called Popcorn Hour A200.
I have succeded in installing OpenVPN 2.2 on A200 and running it (a tunnel named Tun0 is added).
My problem is to make all trafic flows towards the tunnel Tun0
I saw in some forums that i have to put instructions in routing table but i am not used with than.
can any body help please ?


Below the result of route command:
PopcornHour[root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.0.1 10.8.0.165 255.255.255.255 UGH 0 0 0 tun0
10.8.0.165 * 255.255.255.255 UH 0 0 0 tun0
144-224-31-176. 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 10.8.0.165 128.0.0.0 UG 0 0 0 tun0
128.0.0.0 10.8.0.165 128.0.0.0 UG 0 0 0 tun0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

Re: Routing problem

Posted: Fri Dec 23, 2011 12:06 pm
by maikcat
is your openvpn provider aware of this?

if he doesnt offer this ,it simply wont work..


Michael.

Re: Routing problem

Posted: Fri Dec 23, 2011 12:32 pm
by zmain
yes Seedbox if offering OpenVPN service. In fact when i add static route for example to www.google.fr, i succeed in performing a ping through tun0.

my point i that i need to get all trafic go through tun0, but i am not confortable whith the usa of linux/unix commands such as route, iproute....

Cheers

Re: Routing problem

Posted: Sun Dec 25, 2011 11:12 am
by Mimiko
In you client's config file add

Code: Select all

redirect-gateway def1