Discussion:
[Shorewall-users] DNAT and Port Reroute on same interface
Eric Kaufmann
2016-09-27 14:38:11 UTC
Permalink
Hello,

I am trying to forward port 27001 to 27008 on the same interface. I have
tried to the following.

DNAT net loc:27001 tcp 27008


I did put the ip of the address of the machine after loc:. But that didn't
work.


Also tried the following. But, also didn't work.


DNAT net fw:27001 tcp 27008


These are the zones I have defined.


#ZONE TYPE OPTIONS IN OUT

# OPTIONS OPTIONS

net ipv4

nat ipv4

fw firewall

These are the interfaces I have defined.

nat eth0 detect dhcp

net eth1 detect dhcp

nat ib0 detect dhcp

Thanks,

Eric
--
Eric Kaufmann | Application Support Analyst - Advanced Technology Group |
Saint Louis University | 314-977-2257 | ***@slu.edu
Tom Eastep
2016-09-27 16:19:26 UTC
Permalink
Post by Eric Kaufmann
Hello,
I am trying to forward port 27001 to 27008 on the same interface. I have
tried to the following.
DNAT net loc:27001 tcp 27008
You have the port numbers reversed in that rule. It is redirecting port
27008 to local port 27001.

-Tom
--
Tom Eastep \ When I die, I want to go like my Grandfather who
Shoreline, \ died peacefully in his sleep. Not screaming like
Washington, USA \ all of the passengers in his car
http://shorewall.net \________________________________________________
Loading...