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.
server pushes redirect-gateway
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: server pushes redirect-gateway
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.
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"
Long live Dino Dini (Kick off 2 Creator)
Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)
"objects in mirror are losing"
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: server pushes redirect-gateway
add the statement
to your client config to stop ALL routes from being pulled.
Code: Select all
route-nopull
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: server pushes redirect-gateway
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
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"
Long live Dino Dini (Kick off 2 Creator)
Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)
"objects in mirror are losing"
- Bebop
- Forum Team
- Posts: 301
- Joined: Wed Dec 15, 2010 9:24 pm
Re: server pushes redirect-gateway
Solved:k-h wrote: if I can figure out how to stop the redirect-gateway
janjust wrote:route-nopull
The cure for boredom is curiosity