NethServer Version: 7.9.2009
Module: firewall, port forward
Hi,
I’m new to Nethserver and I’m having an issue with port forwarding.
I have a green and a red lan port configured, both working fine.
I have set 3 port forwarding rules but none of them are working (I need to set a couple more).
grep -i DNAT /etc/shorewall/rules
DNAT:none net loc:192.168.100.202:51322 tcp 51322 - &em1
DNAT:info net loc:192.168.100.202:2354 tcp 2354 - &em1
DNAT:info net loc:192.168.100.60:22 tcp 24 - &em1
Port checkers report that the ports are not open, I can’t access to the machine on the corresponding port either.
tcpdump -i em1 port 2354
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on em1, link-type EN10MB (Ethernet), capture size 262144 bytes
12:43:28.973382 IP mail1.gyar.hu.52029 > ad.gyar.hu.psprserver: Flags [S], seq 13030700, win 65535, options [mss 1460,nop,wscale 6,nop,nop,TS val 3221620384 ecr 0,sackOK,eol], length 0
12:43:29.981460 IP mail1.gyar.hu.52029 > ad.gyar.hu.psprserver: Flags [S], seq 13030700, win 65535, options [mss 1460,nop,wscale 6,nop,nop,TS val 3221621384 ecr 0,sackOK,eol], length 0
12:43:30.997118 IP mail1.gyar.hu.52029 > ad.gyar.hu.psprserver: Flags [S], seq 13030700, win 65535, options [mss 1460,nop,wscale 6,nop,nop,TS val 3221622384 ecr 0,sackOK,eol], length 0
12:43:32.007882 IP mail1.gyar.hu.52029 > ad.gyar.hu.psprserver: Flags [S], seq 13030700, win 65535, options [mss 1460,nop,wscale 6,nop,nop,TS val 3221623385 ecr 0,sackOK,eol], length 0
12:43:33.015513 IP mail1.gyar.hu.52029 > ad.gyar.hu.psprserver: Flags [S], seq 13030700, win 65535, options [mss 1460,nop,wscale 6,nop,nop,TS val 3221624385 ecr 0,sackOK,eol], length 0
12:43:34.025885 IP mail1.gyar.hu.52029 > ad.gyar.hu.psprserver: Flags [S], seq 13030700, win 65535, options [mss 1460,nop,wscale 6,nop,nop,TS val 3221625386 ecr 0,sackOK,eol], length 0
Aug 2 12:53:34 ad kernel: Shorewall:net_dnat:DNAT:IN=em1 OUT= MAC=44:a8:42:06:8f:67:98:da:c4:aa:1d:14:08:00 SRC=94.21.1.96 DST=94.21.1.97 LEN=64 TOS=0x00 PREC=0x00 TTL=63 ID=0 DF PROTO=TCP SPT=52211 DPT=2354 WINDOW=65535 RES=0x00 SYN URGP=0
Aug 2 12:53:37 ad kernel: Shorewall:net_dnat:DNAT:IN=em1 OUT= MAC=44:a8:42:06:8f:67:98:da:c4:aa:1d:14:08:00 SRC=94.21.1.96 DST=94.21.1.97 LEN=64 TOS=0x00 PREC=0x00 TTL=63 ID=0 DF PROTO=TCP SPT=52213 DPT=2354 WINDOW=65535 RES=0x00 SYN URGP=0
Aug 2 12:53:39 ad kernel: Shorewall:net_dnat:DNAT:IN=em1 OUT= MAC=44:a8:42:06:8f:67:98:da:c4:aa:1d:14:08:00 SRC=94.21.1.96 DST=94.21.1.97 LEN=64 TOS=0x00 PREC=0x00 TTL=63 ID=0 DF PROTO=TCP SPT=52214 DPT=2354 WINDOW=65535 RES=0x00 SYN URGP=0
Please help
Thx