firewall configuration

Got a feature request? Great! Post your ideas here!
jeromeb
Posts: 17
youtube meble na wymiar Warszawa
Joined: Sun Sep 01, 2013 8:48 pm
Location: Paris / France

firewall configuration

Post by jeromeb »

Hi,

is it possible to have better configuration on iptables firewall.
I don't see how configure rules when I block all to have all outgoing open (with statefull connection)

Could we hade local rules with some scripts or something like that ?

Regards,
-----------------------------------------
AS-604t user
-----------------------------------------
Djuuu
Posts: 6
Joined: Sat Nov 30, 2013 7:14 am

Re: firewall configuration

Post by Djuuu »

Actually, the outgoing connections don't seem to be filtered :

Code: Select all

root@dju-nas:~ # iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere             multiport dports netbios-ns,netbios-dgm,netbios-ssn,445
ACCEPT     tcp  --  anywhere             anywhere             multiport dports www,https
ACCEPT     tcp  --  anywhere             anywhere             multiport dports ssh
DROP       all  --  anywhere             anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
The problem is that there is no rule for RELATED/ESTABLISHED connections in the ACCEPT chain. Which means you can send requests outside, but the related responses are filtered :lol:
That is why ADM update, App central and basically every application with outgoing traffic are broken with the firewall on, unless you also add specific rules for each destination IP on all ports.
Djuuu
Posts: 6
Joined: Sat Nov 30, 2013 7:14 am

Re: firewall configuration

Post by Djuuu »

Also, adding the rule that would solve the problem is impossible :

Code: Select all

root@dju-nas:~ # iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables: No chain/target/match by that name.
I guess some kernel modules are missing.