Here is the output of iptables -v -x -n -L Chain INPUT (policy DROP 417 packets, 49211 bytes) When I try to establish a connection from test-pc I see: ssh: connect to host 192.168.183.254 port 22: Connection timed outĭoes anybody have an idea what I am doing wrong? Picture of fwbuilder policy $IPTABLES -A FORWARD -i eth2 -p tcp -m tcp -d 192.168.0.16 -dport 22 -m state -state NEW -j ACCEPT Picture of fwbuilder NAT rule $IPTABLES -t nat -A PREROUTING -p tcp -m tcp -d 192.168.183.254 -dport 22 -j DNAT -to-destination 192.168.0.16Īnd I created a policy resulting in (after compiling): I created a nat rule resulting in (after compiling): In order to generate the iptables-script I use fwbuilder. But I fail when I want to forward the port 22 to ubuntu-server1. I also created a rule which allows the ubuntu-server1 to connect to the internet using ubuntu-fw as NAT. ![]() My question is how I should forward the port 22 in the ubuntu-fw? Now I would like to access from the test-pc to my ubuntu-server1 via ubuntu-fw by using: ssh network topology is as follows: | test-pc | - | ubuntu-fw | - | ubuntu-server1 | However, for test purposes, I placed a computer in between: The Router(hardware) forwards the port to ubuntu-fw. Ubuntu-server1: ubuntu 16 serving as ssh server ![]() | Internet | - | Router (hardware) | - | ubuntu-fw | - | ubuntu-server1 | I would like to forward the ssh port from ubuntu-fw (firewall) to ubuntu-server1.
0 Comments
Leave a Reply. |