A final preparation for me to use Gentoo on my laptop will be having my RedHat9 desktop share its dialup Internet access, for future emerge work at home.
Pings ok: RH desktop 192.168.0.254 < -- > 192.168.0.1 laptop Suse (which accesses Net gateway 192.168.0.254 fine when the desktop is booted to Win2K)
I've got the desktop script in place from:
http://www.e-infomax.com/ipmasq/ 3.4.1. Configuring IP Masquerade on Linux 2.4.x Kernels
<rc.firewall-2.4 START>
as /etc/rc.d/rc.firewall-2.4 I edited 3 lines only:
EXTIF="ppp0" INTIF="eth0"
$IPTABLES -t nat -A POSTROUTING -o $EXTIF -s 192.168.0.1/32 -j MASQUERADE
& run it from /etc/rc.d/rc.local
Initialisation flashes by apparently ok, but the log file for what it says isn't dmesg, & I haven't found it anywhere else to double check success.
I've set RH Security Level to No Firewall (before this Lokkit had a set of rules going) & now have:
[EMAIL PROTECTED] root]# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination
Chain FORWARD (policy ACCEPT) target prot opt source destination
Chain OUTPUT (policy ACCEPT) target prot opt source destination
I tried & found that:
[EMAIL PROTECTED] root]# IPTABLES -t nat -A POSTROUTING -o $EXTIF -s 192.168.0.1/32 -j MASQUERADE
-bash: IPTABLES: command not found
while
[EMAIL PROTECTED] root]# iptables -t nat -A POSTROUTING -o $EXTIF -s 192.168.0.1/32 -j MASQUERADE
Warning: wierd character in interface `-s' (No aliases, :, ! or *).
Bad argument `192.168.0.1/32'
Try `iptables -h' or 'iptables --help' for more information.
But am struggling to decrypt this :-/ ... try all lower case?
Must be close though.. will try the alternative /etc/rc.d/init.d/ method while awaiting other advice.
Thanks for any guidance,
Cheers
Rik
Nick Rout wrote:
OK please note;Have been reading online, & the laptop has Suse running quite successfully for comparisons. Partition ready.
1. All punters should do some preparation, viz:
1.1 read and re-read the handbook at http://www.gentoo.org/doc/en/handbook/ .
Robert has printed out 6 copies - one each - so contact him if you hate
reading off the screen.
[clip]
-- InfoHelp Services http://www.infohelp.co.nz/linux.html i686 2.4.20-8
