Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Where does Astaro store it's iptables rules?

Hi,

I'd like to manually tweak ASLs iptables ruleset. 

Where is the current ruleset stored on the system (the rules that load when ASL boots)?

Thanks.


This thread was automatically locked due to age.
Parents Reply Children
  • Thanks... I take a look.

    I just wondered if Astaro stored it's iptables config anywhere in human readable format so I could easily modify it and not have to run my own scripts at boot time to change the odd iptables entry.
  • Here's what i found on iptables ruleset from ASL :

    They store there static rules (the one that should not change?) in the following file : /etc/wfe/conf/sinputdeny

    In the following format :

    X#Any#FTP-CONTROL#Any#ACCEPT#
    X#Any#SMTP#Any#ACCEPT#
    X#Any#DNS#Any#ACCEPT#
    X#Any#SQUID#Any#ACCEPT#
    X#Any#HTTP#Any#ACCEPT#
    X#Any#HTTPS#Any#ACCEPT#
    X#Any#AUS#Any#ACCEPT#
    X#Any#traceroute-udp#Any#ACCEPT#
    X#Any#TTL-exceeded#Any#ACCEPT#
    X#Any#IDENT#Any#ACCEPT#

    This is really easy to modify :
    If you want to turn off a specific configuration just replace the X with 0 as in : 0#Any#HTTP#Any#ACCEPT#

    This is REALLY usefull in the case you want to Silently drop a packet getting to port 80 instead of replying that port 80 is CLOSED.

    I guess you can add your own or even change the "Any" definition to a specific network definition (ie PRIVATE_NET)

    Hope to help!      

    Patrice.