Ask Your Question

Using Fedora 19 as a router

asked 2013-09-03 14:26:57 -0500

bluehat gravatar image

updated 2013-09-04 05:59:46 -0500

FranciscoD_ gravatar image

I'm trying to set up a Fedora box as a router between two network segments but I'm having problems with the firewalld. I have set up static routes between the two network segments and these are being loaded but it refuses to work across reboots unless I stop the firewalld manually. I tried disabling firewalld, but that does not work - the box refuses to route traffic.

What exactly is firewalld doing when it loads and unloads that affects the routing capabilities?

edit retag flag offensive close merge delete


Uninstall it by sudo yum remove firewalld

yanglifu90 gravatar imageyanglifu90 ( 2013-09-03 14:45:35 -0500 )edit

That didn't work! whatever the firewall is doing without it something is not being set correctly

bluehat gravatar imagebluehat ( 2013-09-03 17:23:46 -0500 )edit

Can I ask a question? What is your router model?

yanglifu90 gravatar imageyanglifu90 ( 2013-09-03 18:30:04 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2013-09-16 22:34:23 -0500

bluehat gravatar image

I found the problem while looking back through some old iptables rules. By default /proc/sys/net/ipv4/ip_forward is set to 0 - don't route. You have to add the line

echo 1 > /proc/sys/net/ipv4/ip_forward

to the /etc/init.d/network shell script after loading the static routes and before the IPv6 section.

edit flag offensive delete link more


The "official" way of doing this is to edit /etc/sysctl.conf file and add the line net.ipv4.ip_forward = 1

Woland gravatar imageWoland ( 2015-01-25 20:10:53 -0500 )edit

answered 2013-09-03 15:55:45 -0500

Rabin gravatar image

I think you'll have to mask the firewalld unit

If it's a dedicated machine for FW/routeing

why don't you use pfsense ?

edit flag offensive delete link more


It is an internal router so I don't need any sort of firewall on it.

bluehat gravatar imagebluehat ( 2013-09-03 17:26:01 -0500 )edit

Question Tools

1 follower


Asked: 2013-09-03 14:26:57 -0500

Seen: 2,273 times

Last updated: Sep 16 '13