Koozali.org: home of the SME Server

Suggestion

BillN

Suggestion
« 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

cary

RE: Suggestion
« Reply #1 on: May 31, 2000, 10:12:51 AM »
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.

cary

RE: Suggestion
« Reply #2 on: May 31, 2000, 07:54:07 PM »
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

cary

RE: Suggestion
« Reply #3 on: May 31, 2000, 10:55:32 PM »
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

BillN

RE: Suggestion
« Reply #4 on: June 01, 2000, 02:00:05 AM »
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

Alan sedgewick

RE: Suggestion
« Reply #5 on: June 28, 2000, 06:45:48 AM »
Please E-Mail me what info you can.