Can’t figure out how to whitelist my IPv4 address in VyOS (1.2x). I asked AI too, and I got this:
vyos@vyos:~$ configure
vyos@vyos# set firewall name <rule-set-name> rule <rule-number> action <action>
vyos@vyos# set firewall name <rule-set-name> rule <rule-number> source address <ip-address>
vyos@vyos# commit
vyos@vyos# exit
I tried it a few ways but no go.
set firewall REM_MGMT 4 accept xxx.xxx.189.82
set firewall 4 accept xxx.xxx.189.82
set firewall name REM_MGMT rule 4 accept xxx.xxx.189.82
Please explain.
Below is my current settings:
show firewall
-----------------------------
Rulesets Information
-----------------------------
--------------------------------------------------------------------------------
IPv4 Firewall "REM_MGMT":
Active on (eth5,LOCAL)
rule action proto packets bytes
---- ------ ----- ------- -----
1 accept all 0 0
condition - saddr xxx.xxx.45.75 daddr 0.0.0.0/0
2 accept all 0 0
condition - saddr xxx.xxx.143.54 daddr 0.0.0.0/0
3 accept all 0 0
condition - saddr xxx.xxx.138.126 daddr 0.0.0.0/0
10 drop tcp 32520 1948280
condition - saddr 0.0.0.0/0 daddr 0.0.0.0/0 tcp dpt:205
10000 accept all 20387454 1658058081
condition - saddr 0.0.0.0/0 daddr 0.0.0.0/0
--------------------------------------------------------------------------------
IPv4 Firewall "wan-out":
Active on (eth5,OUT)
rule action proto packets bytes
---- ------ ----- ------- -----
10 drop all 0 0
condition - saddr 0.0.0.0/0 daddr xxx.xxx.52.42 LOG enabled