Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: BillN on May 31, 2000, 07:31:42 AM
-
For those of us stuck with a DHCP server on our WAN side, would it be possible to add in a web page, or even on the 'console' a way to see what the address of the 'outside' card is? Logging on as root and doing ifconfig is a drag...
Bill
-
It probably wouldn't be too hard to adjust one of the pages, even the first to output the ip into the page with something like
"EXTIP=/sbin/ifconfig | grep -A 4 $EXTIF | awk '/inet/ { print $2 } ' | sed -e s/addr://"
then just call $extip into the page although I haven't really looked into how the pages are built or if they are already made.
-
ok there is a mistake in that as it's using a variable that is in my firewall the "$extif" should be "eth1"
I tried adding this to my "status" screen on the console but it seems i know nothing about how ?whiptail? works and I have taken out the uptime and only have the external ip showing. If anyone knows how whiptail works and if i just add another --msgbox or add another entry into the messagebox that is already there for the uptime i would be greatly apprecitaed. There doesn't seem to be any man pages on whiptail
-
Ok I got it to list the external ip on the console along with the uptime. If you want the new "console" script let me know and i will email it to you. It's actually pretty easy although I fear the easyness would be lost if i posted it in here and people may use it on a different version and totally screw up their systems.
This is for version 3.1
-
Excellant! I am running 4.0b7. Is it easy enough for me to modify my existing script?
Please email me what you have to billn@midsouth.rr.com.
Thanks!
Bill
-
Please E-Mail me what info you can.