Welcome, Guest. Please login or register.
Did you miss your activation email?
Saturday 02 November 2024, 05:26:00 am

Login with username, password and session length

CLICK HERE for the The official Endian Roadmap and Issue tracker
14248 Posts in 4376 Topics by 6515 Members
Latest Member: hulteends
Search:     Advanced search
+  EFW Support
|-+  Development
| |-+  Contribute Your Customisations & Modifications
| | |-+  Print the remote IP of a PPPoe Connections on main.cgi
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Print the remote IP of a PPPoe Connections on main.cgi  (Read 14439 times)
sunblast
Full Member
***
Offline Offline

Posts: 22


« on: Monday 05 May 2008, 05:20:25 am »

I liked to se the IP address of my pppoe connections so i tweak /var/efw/header.pl to show me.

I just post the code i added to one of the functions:

Code:
                                open ( type, "${swroot}/uplinks/${uplink}/red-type");
                                $type = <type>;
                                chop($type);
                                if ( $type eq "PPPOE" ) {
                                        open ( remoteip, "${swroot}/uplinks/${uplink}/remote-ipaddress");
                                        open ( localip, "${swroot}/uplinks/${uplink}/local-ipaddress");

                                        $remoteIP = "<br />Remote IP: " . <remoteip>;
                                        $localIP = "<br />Local IP: " . <localip>;
                                        $status = $status . $remoteIP . $localIP;
                                }

This goes into the sub "connectionstatus" at line 1771. Just put it behind where $timestr and $status variables are set.

Here is a picture for you to see how it looks like:
http://www.pictureupload.de/pictures/040508213338_efw-ip.JPG
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.031 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com