Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Automatically enable and disable a router's DMZ' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Automatically enable and disable a router's DMZ
Authored by: Whosawhatsis on Oct 20, '05 04:59:51PM
Here's the one-line version that I came up with for mine (a different linksys model). I encapsulated it in applescript and run it using butler so there are no annoying windows or icons to deal with.
curl "`ifconfig |
 awk '$1 ~ /^inet$/ && $2 !~ /^$/ {sub ("192.168.1.", "", $2);
 print $2; exit}'`" -u admin:admin -s > /dev/null

I was offered a penny for my thoughts, so I gave my two cents... I got ripped off.

[ Reply to This | # ]