You are not logged in.

#1 2019-04-07 16:53:33

Xakep_SDK
Member
Registered: 2017-09-23
Posts: 61

Iptables, nat, can't open port

I have simple vpn and i'm trying to open port.

I'm doing this:
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 27015:27030 -j DNAT --to-destination 10.8.0.2
iptables -t filter -A FORWARD -p tcp -d 10.8.0.2 --dport 27015:27030 -j ACCEPT

but first command fails with error:
iptables v1.8.2 (legacy): unknown option "--to-destination"
Try `iptables -h' or 'iptables --help' for more information.

How can i solve this?
man 8 iptables-extensions says, that there is --to-destination argument, but why it fails?

Offline

#2 2019-04-07 17:28:08

loqs
Member
Registered: 2014-03-06
Posts: 18,297

Re: Iptables, nat, can't open port

Does not contain a solution but you are not the only one affected:
https://bbs.archlinux.org/viewtopic.php?id=245253
https://bbs.archlinux.org/viewtopic.php?id=245053

Last edited by loqs (2019-04-07 20:59:43)

Offline

Board footer

Powered by FluxBB