/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! 
/* ALSO: Don't quote this header. It makes you look lame :-) */


Gary S. Mackay wrote:

> Not a problem. Take a look at the TrinityOS document from David Ranch. He has
> some sample firewall scripts in there for just this purpose. You add a line to
> your ip-up.local file (or equivelant on your distro), to run the rc.firewall
> script. Change your ip-down.local to clear the firewall when it hangs up.
> 
> - Gary
> 
> ----------------------------------------------------------------------
> Edison Information Technologies            www.EdisonInfo.com
> P.O. Box 554                               [EMAIL PROTECTED]
> Milan, OH  44846-0554                      419.499.7040
> 
> 
> [EMAIL PROTECTED] wrote:
> > 
> > /* HINT: Search archives @ http://www.indyramp.com/masq/ before posting!
> > /* ALSO: Don't quote this header. It makes you look lame :-) */
> > 
> >      Hello Everyone,
> >         I been scouring all the pages on Masq for the last couple days, and
> >      I still have one burning question.  If you have a DHCP address from
> >      your service provider how do you configure you MASQ ethernet card?
> >         Not the ethernet card attached to the service provider I am asking
> >      about the card that goes to my internal lan:  My guess is it's Gateway
> >      should be the IP address of the card connecting to the service
> >      provider?  But, if this is true, and it's going to change everytime,
> >      there has be someway to automate it.
> >         Any information would be greatly appreciated.  Thank's in advance.
> > 
> >      -Matt

that's not enough for dhcp. the address can changes whenever the lease
runs out. you also need to add the same command to a file in /etc/dhcpc.
have a look at your dhcp documentation or the Makefile from http://fwup.org/
which installs such a command in the right place. here's the relevant extract:

dhcp()
{
        if [ -d /etc/dhcpc ]
        then
                for iface in $$UNTRUSTED_INTERFACES
                do
                        reload /etc/dhcpc/dhcpcd-$$iface.exe
                done
        fi
}

where reload is another function that adds a command to the given file.

the file /etc/dhcpc/dhcpcd-$iface.exe will be executed when $iface
has an address change.

raf

_______________________________________________
Masq maillist  -  [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ -- 
THIS INCLUDES UNSUBSCRIBING!
or email to [EMAIL PROTECTED]

PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.

Reply via email to