I use SME 6.0.1-01 and I try to redirect an internet incoming SSH to an internal unix server old character application.
In server-manager menu, I have given (and validated):
Protocole : TCP
Port(s) source : 22
Destination Ip Address : 172.16.1.1 (unix box)
Destination Port(s) : 22
In /var/log/messages I can see:
Nov 30 15:23:02 sme /etc/e-smith/web/panels/manager/cgi-bin/portforwarding[27779]: /home/e-smith/configuration: NEW masq=service|Logging|most|Stealth|no|TCPForwards|22,172.16.1.1:22|UDPForwards||pptp|yes|status|enabled
Nov 30 15:23:02 sme e-smith[27781]: Processing event: remoteaccess-update
"iptables -L" contains:
Chain ForwardedTCP (1 references)
target prot opt source destination
ForwardedTCP_27912 all -- anywhere anywhere
denylog tcp -- anywhere anywhere tcp flags:SYN,RST,ACK/SYN
Chain ForwardedTCP_27912 (1 references)
target prot opt source destination
ACCEPT tcp -- anywhere 172.16.1.1 tcp dpt:ssh
And yet internet ssh remains bloqued, in /var/log/messges I get denylog entry for each attemp:
Nov 30 15:40:57 sme kernel: denylog:IN=eth1 OUT=eth0 SRC=82.231.255.33 DST=172.16.1.1 LEN=40 TOS=0x00 PREC=0x00 TTL=242 ID=65259 PROTO=TCP SPT=23049 DPT=22 WINDOW=24820 RES=0x00 RST URGP=0
Nov 30 15:41:45 sme kernel: denylog:IN=eth1 OUT=eth0 SRC=82.231.255.33 DST=172.16.1.1 LEN=40 TOS=0x00 PREC=0x00 TTL=242 ID=65259 PROTO=TCP SPT=23064 DPT=22 WINDOW=24820 RES=0x00 RST URGP=0
What am I doing wrong? Any tip to overcome that?
Thanx for help