server pushes redirect-gateway

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
k-h
OpenVpn Newbie
Posts: 1
Joined: Fri Mar 18, 2011 6:20 am

server pushes redirect-gateway

Post by k-h » Fri Mar 18, 2011 6:30 am

a server I'm connecting to pushes redirect-gateway to me.

I don't want to route all traffic through it only the remote subnet.

Actually that's just the start. I really want to only route all traffic to and from a certain port through the VPN. I can do that but it's hard if all the traffic is going through the tunnel. Can I disable the redirect-gateway? It's well done, as if they were using "redirect-gateway def1".

I'm running ubuntu lucid and I think I can make a port route table if I can figure out how to stop the redirect-gateway.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: server pushes redirect-gateway

Post by maikcat » Fri Mar 18, 2011 8:02 am

hi there,

the most easiest thing to do is to talk with openvpn admin so that
remove the redirect gateway..

alternative you can remove the default gateway route from your routing table
after the connection is established by using a script.

michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: server pushes redirect-gateway

Post by janjust » Fri Mar 18, 2011 10:50 am

add the statement

Code: Select all

route-nopull
to your client config to stop ALL routes from being pulled.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: server pushes redirect-gateway

Post by maikcat » Fri Mar 18, 2011 11:30 am

if you want to access the remote subnet you still need to pass
routes by hand...

in any case i believe a script is needed.


michael
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

User avatar
Bebop
Forum Team
Posts: 301
Joined: Wed Dec 15, 2010 9:24 pm

Re: server pushes redirect-gateway

Post by Bebop » Sat Mar 19, 2011 12:02 pm

k-h wrote: if I can figure out how to stop the redirect-gateway
Solved:
janjust wrote:route-nopull
The cure for boredom is curiosity

Post Reply