iptables: Duplicating/Forwarding ports

后端 未结 2 1303
别那么骄傲
别那么骄傲 2021-01-24 16:21

I\'m trying to connect to MySQL (Port 3306) from a network which blocks this port. But there is another port 110 open which I can use for this case. I\'m using MySQL for other a

2条回答
  •  轮回少年
    2021-01-24 16:50

    This might work, haven't tested it.

    iptables -t nat -A PREROUTING -p tcp --dport 110 -j REDIRECT --to-port 3306
    

提交回复
热议问题