Hi,
I'll draw a little diagram, then I will state my question.
ppp link to net (allocated 139.130.45.25 once I dialup from bigpond)
|
.--------.
| |-- eth0 (203.41.122.129)
`--------'
|
eth1 (192.168.1.1)
At the moment, I am running a little route statement of the following;
#!/bin/sh
#
PERM="139.130.45.1"
export PERM
if [ "$PPP_REMOTE" = "$PERM" ]; then
ifconfig $PPP_IFACE 203.41.122.129 netmask 255.255.255.255
route add -host 139.130.45.1 dev $PPP_IFACE
route add -net 0.0.0.0 gw 139.130.45.1 dev $PPP_IFACE
else exit
fi
--
The above script basically makes it so when I join such things as irc, it
will report the reverse mapping on 203.41.122.129 (gateway.mafnet.com)
rather then the reverse mapping of my ppp interface as allocated by telstra.
I'd like to keep that running, but the only thing I would like to change is
that those clients who masq on the 192.168.1.1 interface, also get this
hostmask of the eth0 interface.
My question is, could I add an alias on eth0:0 say 203.41.122.130
(NAT-syd.mafnet.com) and force the masquared clients to make them look like
they are coming over that fake interface? I have played with some of the
ipchains commands, but have failed to make it work.
Anyway like to shed some light...
Also, I am looking at buying a new printer soon, and I want to share it out
via my existing samba services on my linux machine, anyone using a HP 2100
laserjet in the same sort of setup. If not anyone recommend a nice mid level
laser that would work.
Thanks..
Michael Fox
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug