LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Routing question (https://www.linuxquestions.org/questions/linux-server-73/routing-question-611782/)

Murdock1979 01-07-2008 11:49 AM

Routing question
 
Hello!

I am trying to set up a linux router and am wondering if there is a way to use the kernel routing table (ie. route command) instead of setting up the NAT table in iptables when forwarding packets from external machines.

Thanks,
Murdock

acid_kewpie 01-07-2008 01:34 PM

can you give an example of what you mean? a few use cases?

centauricw 01-07-2008 09:27 PM

You can only do this if all your clients have routable IP addresses (i.e. not 192.168.X.X), which is a) unlikely and b) very, very insecure. The kernel routing table only handles routing packets, not rewriting the packet headers to do address translation. You will need to use NAT.


All times are GMT -5. The time now is 01:48 PM.