* Port forward to public IP's behind firewall
@ 2003-09-04 15:30 Gareth Hastings
2003-09-05 7:04 ` Nils Juergens
0 siblings, 1 reply; 2+ messages in thread
From: Gareth Hastings @ 2003-09-04 15:30 UTC (permalink / raw)
To: 'netfilter@lists.netfilter.org'
[-- Attachment #1: Type: text/plain, Size: 464 bytes --]
I am using proxy arp and ip aliasing with iptables as a firewall for a few
class C networks. It works with no problems. All our machines behind the
firewall have public addresses. Now I would like to add a port forward rule
that sends all incoming mail to another IP address. I am not sure what I'd
need to do. I didn't think SNAT or DNAT were needed here as no NAT is
happening. Anyone have any ideas? Do I need to mangle the destination
address?
Thanks
Gareth
[-- Attachment #2: Type: text/html, Size: 864 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Port forward to public IP's behind firewall
2003-09-04 15:30 Port forward to public IP's behind firewall Gareth Hastings
@ 2003-09-05 7:04 ` Nils Juergens
0 siblings, 0 replies; 2+ messages in thread
From: Nils Juergens @ 2003-09-05 7:04 UTC (permalink / raw)
To: 'netfilter@lists.netfilter.org'
On Thu, 04.09.03, Gareth Hastings <Gareth.Hastings@netcall.com> wrote:
> firewall have public addresses. Now I would like to add a port forward rule
> that sends all incoming mail to another IP address. I am not sure what I'd
> need to do. I didn't think SNAT or DNAT were needed here as no NAT is
> happening. Anyone have any ideas? Do I need to mangle the destination
> address?
If you send packets to another IP address why exactly is that not DNAT?
Try:
iptables -t nat -A PREROUTING -p tcp -d $fw_ip --dport 25 -j DNAT --to $target:25
cya,
Nils
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-05 7:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-04 15:30 Port forward to public IP's behind firewall Gareth Hastings
2003-09-05 7:04 ` Nils Juergens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox