^

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-10-26 18:07:04 | Hits: 185

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 192.168.137.100:22

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

 

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.
Currently 0 Upvotes!
captcha image
System - 2021-02-10 05:48:54
We appreciate comments on our site!

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