Hello everyone!
Help me to configure port forwarding from WAN (IP 10.100.1.71) to Exchange (IP 192.168.1.71) using port 993 as an example.
Through ufw configured rule:
Then in the file /etc/ufw/before.rules, before the filter section I added:
Changed in /etc/default/ufw:
to
Uncommented the line in /etc/ufw/before.rules:
Restarted ufw.
Telnet connection to port 993 fails.
Help me to configure port forwarding from WAN (IP 10.100.1.71) to Exchange (IP 192.168.1.71) using port 993 as an example.
Through ufw configured rule:
Code:
ufw allow 993/tcp
Code:
*nat
:PREROUTING ACCEPT [0:0]
-A PREROUTING -i ens224 -p tcp --dport 993 -j DNAT --to 192.168.1.71:993
COMMIT
Code:
DEFAULT_FORWARD_POLICY="DROP"
Code:
DEFAULT_FORWARD_POLICY="ACCEPT"
Uncommented the line in /etc/ufw/before.rules:
Code:
net/ipv4/ip_forward=1
Telnet connection to port 993 fails.
Last edited: