Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

OpenVPN: Gateway is not restored after stopping VPN

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
B.marc
n00b
n00b
Posts: 40
Joined: Sun Oct 16, 2005 5:26 pm
Location: Braunschweig / Germany

OpenVPN: Gateway is not restored after stopping VPN

  • Quote

Post by B.marc » Sat Jan 21, 2006 6:00 pm

Hi,

I have openvpn (routed setup, not bridgeing) running at my work. When I connect at home to the VPN, it is working flawless, but when I disconnect the VPN, my default gateway is not restored.

Here is the ouput:
1.) before I connect to VPN

Code: Select all

hive marc # route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
2.) VPN is running:

Code: Select all

hive marc # route -n
Kernel IP routing table
Destination                Gateway         Genmask         Flags Metric Ref    Use Iface
[IP of firewall]           192.168.0.1     255.255.255.255 UGH   0      0        0 eth0
10.8.0.10                  0.0.0.0         255.255.255.255 UH    0      0        0 tun0
[subnet 1 behind firewall] 10.8.0.10       255.255.255.128 UG    0      0        0 tun0
10.8.0.0                   10.8.0.10       255.255.255.0   UG    0      0        0 tun0
192.168.0.0                0.0.0.0         255.255.255.0   U     0      0        0 eth0
[subnet 2 behind firewall] 10.8.0.10       255.255.255.0   UG    0      0        0 tun0
127.0.0.0                  127.0.0.1       255.0.0.0       UG    0      0        0 lo
0.0.0.0                    10.8.0.10       0.0.0.0         UG    0      0        0 tun0
3.) VPN is stopped:

Code: Select all

hive marc # route -n
Kernel IP routing table
Destination      Gateway         Genmask         Flags Metric Ref    Use Iface
[IP of firewall] 192.168.0.1     255.255.255.255 UGH   0      0        0 eth0
192.168.0.0      0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0        127.0.0.1       255.0.0.0       UG    0      0        0 lo
If you compare 1.) and 3.), you can see, that my old gateway is not restored. Does anyone know, why this is happening and how I can resolve this problem?

Thanks in advance
Marc
Top
B.marc
n00b
n00b
Posts: 40
Joined: Sun Oct 16, 2005 5:26 pm
Location: Braunschweig / Germany

  • Quote

Post by B.marc » Fri Mar 24, 2006 7:31 pm

If of any interest, the problem was, that I downgraded the user privileges to nobody:nogroup after successfull initialisation (option user and group). When I stop openvpn, the proces does not have root rights anymore, therefore it cannot change the routes back.

Marc
Top
Post Reply

2 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy