firewall rule (iptables equivalent)


#1

Hi,

I’m looking how to implement this two simple rules in VyOS

Important: no interface specified - so for ‘any’ interface.

Is this possible in VyOS CLI?

Regards


#2

No, the native cli commands specify firewalls on a per interface or per zone basis. Even using zones, you still need to specify all the interfaces. You could just put those two commands in
/opt/vyatta/etc/config/scripts/vyatta-postconfig-bootup.script


#3

Thanks. I’m already doing this via /opt/vyatta/etc/config/scripts/vyatta-postconfig-bootup.script.
I was simply looking for “native” way :slight_smile:

Regards