[Gllug] local DNS with smoothwall or IPcop?
Steve Nicholson
steve at kiwibum.com
Wed Nov 20 10:58:16 UTC 2002
Simon
Great thanks for your help on this, sorry for the delay in reply have been making use of the host file at the moment.
Steve.
On 16 Nov 2002 01:40:55 +0000 Simon A. Boggis wrote:
> I don't think that ipchains MASQ and/or REDIRECT will do what you want.
> MASQ will indeed make the packets look like they came from your router
> (=SNAT), but won't send them elsewhere (=DNAT). REDIRECT can only
> redirect onto a port on localhost, which isn't much cop unless you run
> the service locally or can tunnel it (which is a bit ugly!).
>
> I'm a bit rusty on ipchains era stuff, but I think you can still achieve
> what you want using ipmasqadm (man 8 ipmasqadm). The manual page is
> pretty good and has (amongst the) examples:
>
> Redirect all traffic from external clientA to internal
> hostB, also show forward masq rule to allow this for hostB
> only (clean, simple ... just *grin*)
>
> ipchains -I forward -d clientA/32 -s hostB/32
> ipchains -I input -s clientA/32 -m 3
> ipmasqadm mfw -I -m 3 -r hostB
>
> Simon
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list