7 lines
342 B
Bash
7 lines
342 B
Bash
#!/bin/bash
|
|
rules() {
|
|
iptables --table nat $append PREROUTING -p tcp --dport 2220 -j DNAT --to-destination 10.24.20.20:22
|
|
iptables --table nat $flag PREROUTING -p tcp --dport 25566 -j DNAT --to-destination 10.24.20.100:25566
|
|
iptables --table nat $flag PREROUTING -p tcp --dport 25567 -j DNAT --to-destination 10.24.20.100:25567
|
|
}
|