Compare commits
1 Commits
v0.0.6m-jl
...
v0.0.6m-em
Author | SHA1 | Date | |
---|---|---|---|
|
5c21400e29 |
@@ -18,7 +18,7 @@
|
|||||||
# - firewall-vpn-l
|
# - firewall-vpn-l
|
||||||
- wireguard-l
|
- wireguard-l
|
||||||
# - x509-l
|
# - x509-l
|
||||||
- post
|
- fw-ferm
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- syslog-cli
|
- syslog-cli
|
||||||
- fw-ferm
|
- post
|
||||||
|
47
roles/fw-ferm/files/ferm-vp1.conf
Normal file
47
roles/fw-ferm/files/ferm-vp1.conf
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
# -*- shell-script -*-
|
||||||
|
|
||||||
|
@def $DEV_VPN= wg0;
|
||||||
|
|
||||||
|
table filter {
|
||||||
|
chain INPUT {
|
||||||
|
policy DROP;
|
||||||
|
|
||||||
|
# connection tracking
|
||||||
|
mod state state INVALID DROP;
|
||||||
|
mod state state (ESTABLISHED RELATED) ACCEPT;
|
||||||
|
|
||||||
|
# allow local connections
|
||||||
|
interface lo ACCEPT;
|
||||||
|
interface $DEV_VPN{
|
||||||
|
# respond to ping
|
||||||
|
proto icmp icmp-type echo-request ACCEPT;
|
||||||
|
# disallow ssh
|
||||||
|
saddr proto tcp dport ssh DROP;
|
||||||
|
}
|
||||||
|
}#FIN INPUT
|
||||||
|
|
||||||
|
# outgoing connections are not limited
|
||||||
|
chain OUTPUT {
|
||||||
|
policy ACCEPT;
|
||||||
|
interface $DEV_VPN{
|
||||||
|
# allow ssh
|
||||||
|
daddr proto tcp dport ssh ACCEPT;
|
||||||
|
# respond to ping
|
||||||
|
proto icmp icmp-type echo-request ACCEPT;
|
||||||
|
}
|
||||||
|
}#FIN OUTPUT
|
||||||
|
|
||||||
|
chain FORWARD {
|
||||||
|
policy ACCEPT;
|
||||||
|
|
||||||
|
# connection tracking
|
||||||
|
mod state state INVALID DROP;
|
||||||
|
mod state state (ESTABLISHED RELATED) ACCEPT;
|
||||||
|
|
||||||
|
# connections from the internal net to the internet or to other
|
||||||
|
# internal nets are allowed
|
||||||
|
interface $DEV_VPN ACCEPT;
|
||||||
|
|
||||||
|
# the rest is dropped by the above policy
|
||||||
|
}#FIN FO
|
||||||
|
}
|
@@ -50,7 +50,15 @@ table filter {
|
|||||||
|
|
||||||
chain FORWARD {
|
chain FORWARD {
|
||||||
policy ACCEPT;
|
policy ACCEPT;
|
||||||
proto icmp icmp-type echo-request ACCEPT;
|
|
||||||
|
interface $DEV_VPN{
|
||||||
|
# respond to ping
|
||||||
|
proto icmp icmp-type echo-request ACCEPT;
|
||||||
|
# disallow ssh
|
||||||
|
saddr($DEV_VPN) proto tcp dport ssh DROP;
|
||||||
|
# allow ssh
|
||||||
|
daddr($DEV_VPN) proto tcp dport ssh ACCEPT;
|
||||||
|
|
||||||
}
|
}
|
||||||
# connection tracking
|
# connection tracking
|
||||||
mod state state INVALID DROP;
|
mod state state INVALID DROP;
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
- name: copie de values.yaml...
|
- name: copie de values.yaml...
|
||||||
copy:
|
copy:
|
||||||
src: /root/tools/ansible/gsb2023/roles/peertube/files/values.yaml
|
src: /root/tools/ansible/gsb2023/roles/peertube/files/values.yaml
|
||||||
dest: /root/tools/peertube/Peertube-helm/helm/
|
dest: /root/tools/peertube/helm/
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|
||||||
- name: installation de helm...
|
- name: installation de helm...
|
||||||
|
Reference in New Issue
Block a user