PDA

View Full Version : SLES 12 SP3 Firewall block outgoing connections



christianmolecki
02-Mar-2018, 15:21
Hello together,

per default the firewall drops all incoming and allows alls outgoing traffic.
Is it possible to limit the outgoing connections via whitelisting (like incoming)?.


Best Regards
Christian

ab
02-Mar-2018, 21:46
On 03/02/2018 07:24 AM, christianmolecki wrote:
>
> Hello together,
>
> per default the firewall drops all incoming and allows alls outgoing
> traffic.

To be clear, UDP and TCP are blocked; other things like ICMP are still
allowed.

> Is it possible to limit the outgoing connections via whitelisting (like
> incoming)?.

I do not know for sure, but you could probably do this with the custom
rules option in the SuSEfirewall2 sysconfig file at
/etc/sysconfig/SuSEfirewall2 :




## Type: string
#
# Do you want to load customary rules from a file?
#
# This is really an expert option. NO HELP WILL BE GIVEN FOR THIS!
# READ THE EXAMPLE CUSTOMARY FILE AT
/etc/sysconfig/scripts/SuSEfirewall2-custom
#
#FW_CUSTOMRULES="/etc/sysconfig/scripts/SuSEfirewall2-custom"
FW_CUSTOMRULES=""



--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.