Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey everyone, I have Debian sarge installed on a system as a server with no GUI. I have already configured shorewall and dhcp and both are working for me, what I want to do now is make the server function as a router so i can replace my current router. Does anyone know what i need to do or know of a goog guide for making it a router? any help is appreciated.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Does the machine already have two nics installed and if so how are they configured.
I have never used shorewall but I would think it would have the ability to setup that portion for you. Might read the manual docs and faqs.
I am only familair with using a script that can be gerneated from this site by answering the questions. http://easyfwgen.morizot.net/gen/
If you go this route then shorewall is not needed.
yes, there are two nics installed, eth0 is set for dhcp since I am on a cable connection and need dhcp for the router. eth1 is set to static as it is the internal nic for my network. I would like to use shorewall because I have learned how to configure the rules and policies but I will have to do some searching of its man pages to see if it actually sets up routing as well or not.
if the machine already has 2 nic`s , i presume that you want to use the it for NAT(network address translation) masquerade
the command is : iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
shorewall has a masquerading file that is supposed to setup nat which is what i want to use it for. does this work or do i still need to run that command? also i have found a setting that it says that I need to set in the /etc/sysctl.conf file to say net.ipv4.ip_foward=1 is this true? and if so do i type it as above or do i type it as net/ipv4/ip_foward=1? I can get a dhcp address from the server i just cant get to the internet
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.