blob: d330593c54407bb2d648d1257481c7ae4ff018f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
rules() {
iptables --table nat $append PREROUTING -p tcp --dport 2220 -j DNAT --to-destination 10.24.20.20:22
iptables --table nat $append PREROUTING -p tcp --dport 220 -j DNAT --to-destination 10.24.20.0:22
# minecraft - survival
iptables --table nat $flag PREROUTING -p tcp --dport 25565 -j DNAT --to-destination 10.24.0.1:25565
iptables --table nat $flag PREROUTING -p udp --dport 25565 -j DNAT --to-destination 10.24.0.1:25565
# kasha ssh
iptables --table nat $flag PREROUTING -p tcp --dport 10022 -j DNAT --to-destination 10.24.0.1:22
iptables --table nat $flag PREROUTING -p tcp --dport 443 -j DNAT --to-destination 10.24.0.1:22
}
|