IPTABLES #Port Forwarding
I would like to Port Forward one of my linux server that is (in) my lan.
I has wondering if this rule would be ok?
iptables -t nat -A PREROUTING -p tcp -i eth1 --dport 1234 -j DNAT --to 192.168.1.2:22
iptables -A FORWARD -i eth1 -o eth0 -p tcp --dport 22 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
The main goal is to be able to use ssh from my home to be able to connect to the office on my linux server with this address 192.168.1.2.
any help please?