]> git.proxmox.com Git - pve-firewall.git/blame - test/test-basic1/tests
fwtester: simplify code with ne bport zone
[pve-firewall.git] / test / test-basic1 / tests
CommitLineData
f1bafd37
DM
1{ from => 'ct200', to => 'host', dport => 22, action => 'ACCEPT' }
2{ from => 'ct200', to => 'host', dport => 23, action => 'DROP' }
3
4{ from => 'vm100', to => 'host', dport => 22, action => 'ACCEPT' }
5
6{ from => 'host' , to => 'ct200', dport => 80, action => 'DROP' }
7{ from => 'host' , to => 'ct200', dport => 22, action => 'ACCEPT' }
8
9{ from => 'host' , to => 'vm100', dport => 80, action => 'DROP' }
10
11{ from => 'ct200' , to => 'vm100', dport => 80, action => 'DROP' }
12
13{ from => 'vm100' , to => 'ct200', dport => 22, action => 'ACCEPT' }
14
d1486f38 15{ from => 'vm101', to => 'vm100', dport => 22, action => 'DROP' }
ec2e28f6 16{ from => 'vm101', to => 'vm100', dport => 443, action => 'ACCEPT', id => 'vm2vm'}
d1486f38
DM
17
18{ from => 'ct201', to => 'ct200', dport => 22, action => 'ACCEPT' }
19{ from => 'ct201', to => 'ct200', dport => 23, action => 'DROP' }
20
21{ from => 'vm110', to => 'vm100', dport => 22, action => 'DROP' }
22{ from => 'vm110', to => 'vm100', dport => 443, action => 'ACCEPT' }
23
31dc73f1
DM
24{ from => 'outside', to => 'ct200', dport => 22, action => 'ACCEPT' }
25{ from => 'outside', to => 'ct200', dport => 23, action => 'DROP' }
26{ from => 'outside', to => 'vm100', dport => 22, action => 'DROP' }
27{ from => 'outside', to => 'vm100', dport => 443, action => 'ACCEPT' }
28{ from => 'outside', to => 'host', dport => 22, action => 'ACCEPT' }
29{ from => 'outside', to => 'host', dport => 23, action => 'DROP' }
30
ec2e28f6 31{ from => 'host' , to => 'outside', dport => 80, action => 'ACCEPT'}
31dc73f1
DM
32{ from => 'host' , to => 'outside', dport => 81, action => 'REJECT' }
33{ from => 'vm100' , to => 'outside', dport => 80, action => 'ACCEPT' }
34{ from => 'vm100' , to => 'outside', dport => 81, action => 'REJECT' }
35{ from => 'ct200' , to => 'outside', dport => 80, action => 'ACCEPT' }
36{ from => 'ct200' , to => 'outside', dport => 81, action => 'REJECT' }
37
e73072a7
DM
38{ from => 'outside', to => 'host', dport => 100, action => 'REJECT' }
39{ from => 'outside', to => 'host', dport => 101, action => 'DROP' }
d1486f38 40
c0c871d8
DM
41{ from => 'nfvm', to => 'host', dport => 22, action => 'ACCEPT' }
42{ from => 'nfvm', to => 'host', dport => 80, action => 'DROP' }
43{ from => 'nfvm', to => 'outside', dport => 22, action => 'ACCEPT' }
44{ from => 'nfvm', to => 'outside', dport => 80, action => 'ACCEPT' }
45{ from => 'nfvm', to => 'vm100', dport => 443, action => 'ACCEPT', id => 'nfw2vm'}
46{ from => 'nfvm', to => 'vm100', dport => 80, action => 'DROP' }
47{ from => 'nfvm', to => 'ct200', dport => 22, action => 'ACCEPT' }
48{ from => 'nfvm', to => 'ct200', dport => 80, action => 'DROP' }
49
50{ from => 'ct200', to => 'nfvm', dport => 80, action => 'ACCEPT' }
51{ from => 'vm100', to => 'nfvm', dport => 80, action => 'ACCEPT' }
52{ from => 'outside', to => 'nfvm', dport => 80, action => 'ACCEPT' }
53{ from => 'host', to => 'nfvm', dport => 80, action => 'ACCEPT' }
47ece390
DM
54
55{ from => 'vmbr0/eth0', to => 'host', dport => 22, action => 'ACCEPT' }
56{ from => 'host' , to => 'vmbr0/eth0', dport => 22, action => 'ACCEPT' }