forked from gadmin/gsb2023
ajout ferm vpn
This commit is contained in:
parent
f9e48e7614
commit
851543db0a
@ -1,5 +1,3 @@
|
|||||||
# -*- shell-script -*-
|
|
||||||
|
|
||||||
@def $DEV_VPN= wg0;
|
@def $DEV_VPN= wg0;
|
||||||
|
|
||||||
table filter {
|
table filter {
|
||||||
@ -12,23 +10,22 @@ table filter {
|
|||||||
|
|
||||||
# allow local connections
|
# allow local connections
|
||||||
interface lo ACCEPT;
|
interface lo ACCEPT;
|
||||||
interface $DEV_VPN{
|
|
||||||
# respond to ping
|
# respond to ping
|
||||||
proto icmp icmp-type echo-request ACCEPT;
|
proto icmp icmp-type echo-request ACCEPT;
|
||||||
# disallow ssh
|
# disallow ssh
|
||||||
saddr proto tcp dport ssh DROP;
|
proto tcp dport ssh ACCEPT;
|
||||||
}
|
|
||||||
}#FIN INPUT
|
}#FIN INPUT
|
||||||
|
|
||||||
# outgoing connections are not limited
|
# outgoing connections are not limited
|
||||||
chain OUTPUT {
|
chain OUTPUT {
|
||||||
policy ACCEPT;
|
policy ACCEPT;
|
||||||
interface $DEV_VPN{
|
|
||||||
# allow ssh
|
# allow ssh
|
||||||
daddr proto tcp dport ssh ACCEPT;
|
proto tcp dport ssh DROP;
|
||||||
# respond to ping
|
# respond to ping
|
||||||
proto icmp icmp-type echo-request ACCEPT;
|
proto icmp icmp-type echo-request ACCEPT;
|
||||||
}
|
|
||||||
}#FIN OUTPUT
|
}#FIN OUTPUT
|
||||||
|
|
||||||
chain FORWARD {
|
chain FORWARD {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user