PDA

View Full Version : How to set up router in Fedora Core 2


radioactive
1st June 2004, 02:51 AM
Hello,

Can you help me?
I have server with 2 LAN cards and I want to make it as a router.

Can anybody tell a good HOW-TO or something....

renato
2nd June 2004, 01:07 PM
I use shorewall for my linux box.

wget http://shorewall.net/pub/shorewall/shorewall-2.0.2d/

Here is the setup guide for a box w/ 2 nics.

http://shorewall.net/two-interface.htm

wget http://shorewall.net/pub/shorewall/Samples/samples-2.0.1/two-interfaces.tgz

The file above will replace the files in /etc/shorewall after you've installed the program.

Then, you can modify the script to meet your needs.

From one noob to another. Hope this helps.

radioactive
3rd June 2004, 12:59 AM
thanks for help :)

mrsun2005
12th June 2004, 07:04 AM
routing must be enabled. edit /etc/sysctl.conf and change the following line
net.ipv4.ip_forward = 1

service network restart

add additional routes if needed