I am using fwbuilder to setup my iptables rules for a public server. The idea is to forward external requests from the 222 port to a local machine's ssh port. The settings i used are:
Original Src: Any
Original Dst: public ip (internet)
Original Srv: tcp 222
Translated Src: Original
Translated Dst: local machine ip
Translated Srv: tcp 22
The corresponding iptables rule is:
$IPTABLES -t nat -A PREROUTING -p tcp -m tcp --sport 222 -d X.X.X.X --dport 22 -j DNAT --to-destination X.X.X.X:22
This setting does nothing. Does anyone knows how to do a simple port forwarding with fwbuilder ?
Thanks in advance.