Forward Port

Knowledge Base Entry: #120
^Top
<< Back
Mobile-Menu










Forward Port
Category: Linux/IPTables
Author: Bugfish
Created at: 2021-02-09 09:24:37
Modified at: 2025-09-19 17:27:12
Directs Hits: 655

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
Caution: 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.
This Website is using Session Cookies for Site Functionality.