Forums

Skip to content

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

How to activate routing [solved]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
hika
Apprentice
Apprentice
User avatar
Posts: 234
Joined: Fri Mar 13, 2009 5:55 pm
Location: Utrecht

How to activate routing [solved]

  • Quote

Post by hika » Wed Apr 09, 2014 12:55 pm

I am maintaining a server I have access to through a vpn tunnel. On my side I have a fli4l box as the end point the other side is on the server.
This works great as long as I don't want to reach further then the server. I can not even ping any of the machines on that network.
As far as I know the routes are set up properly, but it seems that server refuses to route. It could be iptables on the fli4l router, but I don't think so. The server has no iptables.
I tested both on the external net and on my own net to set the server as default route, which then should route to the gateway they have as default route. That doesn't happen.
So my guess is that next to proper kernel configuration I have to do something else to activate the routing. I can not find anything in the homerouter wiki, so could anybody enlighten me?

Hika
Last edited by hika on Wed Apr 09, 2014 10:01 pm, edited 1 time in total.
Top
hika
Apprentice
Apprentice
User avatar
Posts: 234
Joined: Fri Mar 13, 2009 5:55 pm
Location: Utrecht

  • Quote

Post by hika » Wed Apr 09, 2014 1:19 pm

This is the routing table on the external server:

Code: Select all

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         Router.agrikos. 0.0.0.0         UG    2      0        0 enp1s0
loopback        localhost       255.0.0.0       UG    0      0        0 lo
192.168.222.0   192.168.252.109 255.255.255.0   UG    2      0        0 tun0
192.168.232.0   *               255.255.255.0   U     0      0        0 enp1s0
192.168.252.108 192.168.252.110 255.255.255.252 UG    1      0        0 tun0
192.168.252.109 *               255.255.255.255 UH    0      0        0 tun0
where:

Code: Select all

192.168.232.0/24   is the local network
192.168.222.0/24   is my network
192.168.252.108/30 is the vpn network
As said before internal on the server it works, but it won't forward any route.

Hika
Top
hika
Apprentice
Apprentice
User avatar
Posts: 234
Joined: Fri Mar 13, 2009 5:55 pm
Location: Utrecht

  • Quote

Post by hika » Wed Apr 09, 2014 10:01 pm

I found the answer in the openvpn faq in openvpn.net.
For anybody who's interested. It is missing in the home router wiki.

Code: Select all

echo 1 > /proc/sys/net/ipv4/ip_forward
Hika
Top
hika
Apprentice
Apprentice
User avatar
Posts: 234
Joined: Fri Mar 13, 2009 5:55 pm
Location: Utrecht

  • Quote

Post by hika » Wed Apr 09, 2014 11:48 pm

One extra remark. It is in the wiki but hidden in the iptables config. Which I don't need here, for it is inside save networks.
Top
hika
Apprentice
Apprentice
User avatar
Posts: 234
Joined: Fri Mar 13, 2009 5:55 pm
Location: Utrecht

  • Quote

Post by hika » Fri Apr 11, 2014 5:36 pm

I have still some problems with the routing. I can now ping a printer on the other side, but not the windows machines or the router. Is this a setting on these machines? To only answer to requests on the local net?
Another thing still not working is the dns synchronization of isc bind. It worked when I build the remote server, when I had it at home behind my router on a separate subnet.
Once I put the new server on it's place behind the openvpn tunnel, it only worked one way on my server and not on the remote and still isn't. While testing I have iptables on my router fully open on the tunnel. So I don't think the problem lies there. Could it be that this goes by udp and that the kernel needs some other setting?
Top
Post Reply

5 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

 

 

magic