mirror of
git://git.proxmox.com/git/pve-firewall.git
synced 2025-03-06 00:58:15 +03:00
add tests for management ipset
This commit is contained in:
parent
eb399cef48
commit
d4cae1d697
@ -3,6 +3,10 @@
|
||||
myserveralias 10.2.0.111
|
||||
mynetworkalias 10.3.0.0/24
|
||||
|
||||
[ipset management]
|
||||
|
||||
192.168.128.2
|
||||
|
||||
[ipset myipset]
|
||||
|
||||
192.168.0.1
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
# blacklisted
|
||||
{ from => 'outside', to => 'host', source => '192.168.0.1', dest => '1.2.3.4', dport => 22, action => 'DROP' }
|
||||
# accept in myipset
|
||||
@ -15,3 +14,10 @@
|
||||
# reject dmzhosts if from myipset
|
||||
{ from => 'outside', to => 'host', source => '172.16.0.10', dest => '10.10.10.1', dport => 22, action => 'REJECT' }
|
||||
{ from => 'outside', to => 'host', source => '172.16.0.10', dest => '10.10.11.1', dport => 22, action => 'REJECT' }
|
||||
|
||||
# management ipset
|
||||
{ from => 'outside', to => 'host', source => '192.168.128.1', dport => 8006, action => 'DROP' }
|
||||
{ from => 'outside', to => 'host', source => '192.168.128.1', dport => 22, action => 'DROP' }
|
||||
{ from => 'outside', to => 'host', source => '192.168.128.2', dport => 8006, action => 'ACCEPT' }
|
||||
{ from => 'outside', to => 'host', source => '192.168.128.2', dport => 22, action => 'ACCEPT' }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user