Files
pannello/firewall/tmp/fw.new
2016-06-17 12:28:11 +02:00

42 lines
887 B
Plaintext

fw_custom_after_chain_creation() {
# REGOLE DINAMICHE
### START REGOLA-U1 PERMANENTE ###
iptables -N REGOLA-U1
iptables -I REGOLA-U1 -p tcp -o -s 192.168.1.1 --sport 25 -d 151.1.219.70 --dport 443 -j ACCEPT
iptables -I REGOLA-U1 -p tcp -i -d 192.168.1.1 --dport 25 -s 151.1.219.70 --sport 443 -j ACCEPT
iptables -I FORWARD -j REGOLA-U1
### STOP REGOLA-U1 PERMANENTE ###
### START REGOLA-U3 ###
iptables -N REGOLA-U3
iptables -I REGOLA-U3 -p udp -o -s 192.168.1.3 --sport 45 -d 151.1.219.70 --dport 6754 -j ACCEPT
iptables -I REGOLA-U3 -p udp -i -d 192.168.1.3 --dport 45 -s 151.1.219.70 --sport 6754 -j ACCEPT
iptables -I FORWARD -j REGOLA-U3
### STOP REGOLA-U3 ###
# FINE REGOLE DINAMICHE
true
}
fw_custom_before_port_handling() {
true
}
fw_custom_before_masq() {
true
}
fw_custom_before_denyall() {
true
}
fw_custom_after_finished() {
true
}