Hello Guys!
I have an issue on my actual infrastructure, I post on this issue on photo to show my IT, the issue is I don’t know how to make port forwarding on my network. My router give 192.168.88.0/24 network and under VYOS I have 192.168.77.0/24 IP, so if I have for example one query coming on 192.168.88.10 on port 22 and I want to forward it to 192.168.77.1 for example on port 1022 so how can I forward it?
In My case 192.168.77.2 and 192.168.77.3 also have ssh server, so how to specify for this way? example 2022 port is use for ssh on 192.168.77.2 and 3022 for 192.168.77.3 for ssh?
Hi n.fort,
After trying add some rule, I’m facing to another issue.
In my VYOS server I’ve on eth0 192.168.88.91 and on eth1 192.168.77.254
when I add:
set nat destination rule 30 description ‘Port Forward ssh to 192.168.77.3’
set nat destination rule 30 destination port ‘22’
set nat destination rule 30 inbound-interface ‘eth0’
set nat destination rule 30 protocol ‘tcp’
set nat destination rule 30 translation address ‘192.168.77.3’
set nat destination rule 30 translation port ‘6022’
After commit & save.
I try to test telnet to 192.168.88.91 on 6022 and it say that connection is refused
Source IP 192.168.88.105, I try to get ssh on 192.168.77.3 on port 22
Hello Dmitry,
Guy thank your comment, I don’t see that this resolve definitively my isse and thank you very much;
One question, how can I remove all error configuration? when I commit all old error happen on the interface and say that I must do modification or any rollback?