Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
router using firewalld not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Sun Jan 10, 2016 4:44 pm    Post subject: router using firewalld not working Reply with quote

I had a firewall configuration using firewalld that allowed forwarding for everyone and masquerading for zone b2b

it was working just fine till I updated the system(emerge -uDN @installed) and rebooted

b2b
interfaces:
sources: 10.0.0.2
services:
ports: 53/udp 7070/tcp 2049/udp 111/udp 5901/tcp 32767/udp 22/tcp
masquerade: yes
forward-ports:
icmp-blocks:
rich rules:

and direct rules:
<?xml version="1.0" encoding="utf-8"?>
<direct>
<rule priority="0" table="filter" ipv="ipv4" chain="FORWARD">-j ACCEPT</rule>
<rule priority="0" table="nat" ipv="ipv4" chain="POSTROUTING">-j MASQUERADE</rule>
</direct>



which was working fine.
I have the default route configuredon the other host(no changes), dns is working but cannot ping anyone outside the localnetwork 10.0.0/.08
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Sun Jan 10, 2016 8:54 pm    Post subject: Reply with quote

apparently I have to set the
net.ipv4.conf.eth1.forwarding = 1
net.ipv4.conf.eth0.forwarding = 1


in addition to that, these values are not being automatically read by teh system(things work fine If i run sysctl -p)
I'm working on fixing that
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42563
Location: 56N 3W

PostPosted: Sun Jan 10, 2016 8:59 pm    Post subject: Reply with quote

Adel Ahmed,

Hint. Edit /etc/sysctl.conf
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Sun Jan 10, 2016 10:43 pm    Post subject: Reply with quote

I did, and sysctl -p works like a charm
it's just not reading these values when I reboot
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Mon Jan 11, 2016 7:18 pm    Post subject: Reply with quote

so the sysctl settings are lost when I poweroff/on a VM using virsh
maybe the autostart of libvirtd is what's casuing this
I'm definitely getting warmer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum