On Friday 10 December 2010 18:25:14 Dale wrote: > Mick wrote: <snip ...>
> > The above should hopefully work.
>
> OK. I had a LONG day yesterday. I took a nap. I was getting a little
> goofy here. Before I try all this, what is the best way to "undo"
> everything I have done with this so far? I ask because I have tried two
> scripts and I don't know what all has been changed and what state things
> are in.
To flush your iptable rules you can run:
/sbin/iptables -F
-F, --flush [chain]
Flush the selected chain (all the chains in the table if none is
given). This is equivalent to deleting all the rules one by
one.
If you only want to flush one chain (e.g. OUTPUT) then run:
/sbin/iptables -F OUTPUT
Running /sbin/iptables -L -v -n before and after will show you what rules are
there and what are deleted.
Iptables scripts usually run --flush to clear out any previous rules before
they add their own.
You can edit any such script to add the MASQUERADE target I suggested
previously in the POSTROUTING chain (following the syntax of the particular
script).
> I also noticed this. When I have lightening hooked to smoker and smoker
> hooked to the modem, I can't get to the internet until I restart eth2
> which is what connects smoker to the modem. It acts like it is trying
> to use eth0 instead of eth2.
... and I bet that the routes do not look like what you posted in your first
message.
Your current routes are not correctly configured. The fact that it is trying
to use eth0 may be related to the ethX number? i.e. it starts from the lowest
number and it works it's way up. You can delete your net udev rules and
reboot to change these (or manually edit your udev rules). Either way, adapt
my previous instructions for your respective NIC numbers.
> The modem I have is a Motorola Netopia 2210-02. I took that info from
> the home page of the modem. Just looking at it, it's the little silver
> colored thing and I did pay almost $80.00 for that thing. It also says
> it has a DNS server and it is on.
It looks like a well spec'ed single port modem and ADSL router. Since it is
running a DNS repeater you can set in your /etc/resolv.conf files the IP of
your router as the DNS server - if it doesn't pick it up on its own.
--
Regards,
Mick
signature.asc
Description: This is a digitally signed message part.

