Des Wass wrote:

> external interface is 203.x.x.10
> Internal address to masquerade is 192.168.1.0/24
>
> with:
> ipchains -A forward -s 192.168.1.0/24 -d 0/0 -j MASQ
>
> every address behind gets masked as 230.x.x.10. Which is ok. Now I have
> one machine that needs to be 203.x.x.43 (have C class).
>
> How can i get one to be 203.x.x.43 while the others remain standard masks
> behind 203.x.x.10?

Assuming that the machine is set as 203.x.x.43, incoming packets will be
routed through the linux box, and the linux box's is the gateway for this
other machine..

ipchains -A forward -b -s 203.x.x.43/32 -d 0/0 -j ACCEPT
route add 203.x.x.43/32 eth0  (replace eth0 with the relevant interface).

I'm not sure if this will work, but hey, it's worth a try :)

Alexander.

--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to