shell script question

Matt Bowler matt at
Wed Oct 12 22:12:16 MDT 2005

Basically it forwards all traffic to one particular lan host. 

-----Original Message-----
From: plug-bounces at [mailto:plug-bounces at] On Behalf Of
Michael Torrie
Sent: Wednesday, October 12, 2005 7:59 PM
To: Provo Linux Users Group Mailing List
Subject: Re: shell script question

On Wed, 2005-10-12 at 18:33 -0600, Richard K. Miller wrote:
> I'm close to finishing a shell script to automatically enable the DMZ 
> on my Linksys router no matter what IP address my computer has.

What is the DMZ thing on linksys routers for anyway?  It doesn't seem to
bear any resemblance to the DMZs I'm used to working with on large networks.
(Islands of minimal trust).  How does linksys define DMZ?


> This returns the last octet of my local IP address, which happens to 
> be a "5":
> ifconfig | grep netmask | grep -v | awk {'print $2'} | sed 
> 's/10.1.1.//'
> This connects to the web interface of my Linksys router to turn on the 
> DMZ: (notice the "5") curl -u admin:password -d
> "submit_button=DMZ&change_action=&action=Apply&dmz_enable=1&dmz_ipaddr
> =5
> " -s
> How do I connect the two commands?
> Richard
> /*
> PLUG:, #utah on
> Unsubscribe:
> Don't fear the penguin.
> */
Michael Torrie <torriem at>

PLUG:, #utah on
Don't fear the penguin.

More information about the PLUG mailing list