^

Forward Port with IPTables

Article 120 in Networking

<< Back
2021-02-09 09:24:37 from bugfish
Forward Port with IPTables
Networking / IpTables
Last Review on: 2022-08-06 15:19:13 | Hits: 492

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.

Comments

Currently 1 Upvotes!

captcha image
System - 2022-08-17 03:19:16
Thanks for visiting my page and have a nice day!
Staff may be in trouble!
Theme
Switch: NONE | Arrive: NONE
This Website is using Session Cookies for Site Functionality and AWStats.