THIS TOPIC WAS WITH SUBJECT "Port forwarding doesn't work!!!"
I have IP telephony server behind my SME71. The supporting company need access to port 22 on teir server from Internet/Their office.
I tryed port forward some port to iptelsrv:22 but it doesn't work.
[root@srv iptables]#tcpdump -vv -i eth1 dst port 11111
tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
22:19:46.663006 IP (tos 0x0, ttl 58, id 33320, offset 0, flags [DF], proto 6, length: 60) office-router.57858 > my-ext-iface.11111: S [tcp sum ok] 133678472:133678472(0) win 5840 <mss 1460,sackOK,timestamp 2159036320 0,nop,wscale 2>
22:19:48.243941 IP (tos 0x0, ttl 58, id 33322, offset 0, flags [DF], proto 6, length: 60) office-router.57858 > my-ext-iface.11111: S [tcp sum ok] 133678472:133678472(0) win 5840 <mss 1460,sackOK,timestamp 2159039320 0,nop,wscale 2>
[root@srv iptables]# iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
PortForwarding all -- anywhere anywhere
SMTPProxy tcp -- anywhere anywhere tcp dpt:smtp
TransProxy tcp -- anywhere anywhere tcp dpt:http
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
PostroutingOutbound all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain PortForwarding (1 references)
target prot opt source destination
PortForwarding_4508 all -- anywhere my-ext-iface
Chain PortForwarding_4508 (1 references)
target prot opt source destination
DNAT tcp -- anywhere anywhere tcp dpt:11111 to:iptelsrv:22
Chain PostroutingOutbound (1 references)
target prot opt source destination
ACCEPT all -- my-ext-iface anywhere
MASQUERADE all -- anywhere anywhere
Chain SMTPProxy (1 references)
target prot opt source destination
ACCEPT all -- anywhere localhost
ACCEPT all -- anywhere srv.mycompany.local
ACCEPT all -- anywhere my-ext-iface
DNAT tcp -- anywhere anywhere to:my-int-iface:25
Chain TransProxy (1 references)
target prot opt source destination
ACCEPT all -- anywhere localhost
ACCEPT all -- anywhere srv.mycompany.local
ACCEPT all -- anywhere my-ext-iface
DNAT tcp -- anywhere anywhere to:my-int-iface:3128
In /var/log/iptables/current log file there are no records for dropped packets.
Look very strange!
Any help will be appreciated.