Forward Port with IPTables

Article 120 in Networking

2021-02-09 09:24:37 from bugfish
Forward Port with IPTables
Networking / IpTables
Last Review on: 2021-08-01 22:46:50 | Hits: 123

This adds a rule to forwars port 1022 to port 22 (SSH) an another internal IP.
iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 1022 -j DNAT --to

This removes the previous commands changes:
 iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 1022 -j DNAT --to


I do not guarantee the reliability of the information given here, the code described on this page is executed at your own risk and in the event of damage or other unforeseeable consequences I am in no way responsible or liable.
Comment Section
Currently 0 Upvotes!
captcha image

System - 2021-02-10 05:48:54
We appreciate comments on our site!

This Website is using Session Cookies for Site Functionality and AWStats.