nat - Is it possible to map 1:1 port range iptable DNAT rules -


i want following rules forward tcp packets 127.0.0.1:32770 172.17.0.36:1000 , forward packets 127.0.0.1:32771 172.17.0.36:10001 , forward packets 127.0.0.1:32772 172.17.0.36:10002

iptables -t nat -a docker ! -i docker0 -p tcp -m tcp --dport 32770:32771 -j dnat --to-destination 172.17.0.36:1000-1002 

but can forward packets 127.0.0.1:32770-32771 1 of 172.17.0.36:1000-1002


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -