44 lines
980 B
Plaintext
44 lines
980 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-I1 PERMANENTE ###
|
|
iptables -I PREROUTING -t nat -p tcp -i --dport 3056 -j DNAT --to 192.168.1.2:3306
|
|
iptables -N REGOLA-I1
|
|
iptables -I REGOLA-I1 -p tcp -i -s 10.10.40.9 -d 192.168.1.2 --dport 3306 -j ACCEPT
|
|
iptables -I REGOLA-I1 -p tcp -o -d 10.10.40.9 -s 192.168.1.2 --sport 3306 -j ACCEPT
|
|
iptables -I FORWARD -j REGOLA-I1
|
|
### STOP REGOLA-I1 PERMANENTE ###
|
|
# 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
|
|
}
|
|
|