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 "http://192.168.1.1/Gozila.cgi?P4Status=1&exIP3=`ifconfig |
 awk '$1 ~ /^inet$/ && $2 !~ /^127.0.0.1$/ {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 | # ]