Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

netconsole over pppoe

25 views
Skip to first unread message

jid...@jidanni.org

unread,
Apr 20, 2013, 10:20:01 PM4/20/13
to
All it takes is a few pluggin in and pulling out of USB devices to cause kernel 3.8 to panic.

I can take a picture with a camera of the screen and send it to
somebody, but I would rather try

http://www.cmdln.org/2009/01/21/remote-kernel-logging-with-netconsole-for-fun-and-profit/

But it says I need the MAC address,

however I am on PPPOE over ADSL so

# netstat -rn #just says
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
168.95.98.254 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.44.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

OK, so now I turn to wireshark to get the MAC address,

http://ask.wireshark.org/questions/15824/display-mac-address-in-the-packet-list

but of course that doesn't work for me either.

Why can't somebody make a shell script for me, so that after I connect to the internet,

it starts logging that kernel stuff to my Dreamhost Personal VPS,
(where I supposedly will run the netcat stuff to log to a file.)

P.S., please CC me as I am at my uncle's house today.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/2013042101...@ps11007.dreamhostps.com

jid...@jidanni.org

unread,
Apr 20, 2013, 11:00:02 PM4/20/13
to
http://www.aboutdebian.com/network.htm says

Note: With point-to-point serial links like a dial-up connection
between two modems (PPP Layer 2 protocol) ... but there is no
addressing information in the frame header.

OK so what do I use then?
# ifconfig | grep HW
eth0 Link encap:Ethernet HWaddr 20:89:84:...

but that is only one of
remote mac
local_mac
mentioned on http://www.cmdln.org/2009/01/21/remote-kernel-logging-with-netconsole-for-fun-and-profit/
so how do I find the other one? Thanks.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20130421023...@ps11007.dreamhostps.com

jid...@jidanni.org

unread,
Apr 21, 2013, 6:50:01 AM4/21/13
to
Wait...
ppp says
Plugin rp-pppoe.so loaded.
Connected to 00:90:1a:... via interface eth0
peer from calling number 00:90:1A:... authorized
local IP address 36.234...
remote IP address 168.95...
OK maybe I have all the information I need...


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20130421102...@ps11007.dreamhostps.com

Pascal Hambourg

unread,
Apr 21, 2013, 8:40:02 AM4/21/13
to
Hello,

jid...@jidanni.org a écrit :
>
> however I am on PPPOE over ADSL so
>
> # netstat -rn #just says
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt Iface
> 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
> 168.95.98.254 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> 192.168.44.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

>From Documentation/networking/netconsole.txt in the kernel source tree :
"some fundamental limitations will remain: only IP networks, UDP packets
and *ethernet devices* are supported."

A PPP or PPPoE interface is not an ethernet device, so unless the
documentation is outdated, you cannot use ppp0. If you setup netconsole
to send packets through eth0 to the PPPoE access concentrator MAC
address, it is very unlikely they they will reach the remote server.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/5173D8C5...@plouf.fr.eu.org

Zenaan Harkness

unread,
Apr 21, 2013, 7:20:01 PM4/21/13
to
On 4/21/13, Pascal Hambourg <pas...@plouf.fr.eu.org> wrote:
> jid...@jidanni.org a écrit :
>> however I am on PPPOE over ADSL so
>>
>> # netstat -rn #just says
>> Kernel IP routing table
>> Destination Gateway Genmask Flags MSS Window irtt
>> Iface
>> 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0
>> ppp0
>> 168.95.98.254 0.0.0.0 255.255.255.255 UH 0 0 0
>> ppp0
>> 192.168.44.0 0.0.0.0 255.255.255.0 U 0 0 0
>> eth0
>
> >From Documentation/networking/netconsole.txt in the kernel source tree :
> "some fundamental limitations will remain: only IP networks, UDP packets
> and *ethernet devices* are supported."
>
> A PPP or PPPoE interface is not an ethernet device, so unless the
> documentation is outdated, you cannot use ppp0. If you setup netconsole
> to send packets through eth0 to the PPPoE access concentrator MAC
> address, it is very unlikely they they will reach the remote server.

So tun/tap? vtun (or openvpn if you want encryption, or just a modern
ssh with local tun/tap support), or perhaps etherpuppet?


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/CAOsGNSSrACybZE+YJ7a7PQr...@mail.gmail.com

jid...@jidanni.org

unread,
Apr 22, 2013, 12:00:01 AM4/22/13
to
On Mon, Apr 22, 2013 at 09:14:02AM +1000, Zenaan Harkness wrote:
> So tun/tap? vtun (or openvpn if you want encryption, or just a modern
> ssh with local tun/tap support), or perhaps etherpuppet?
I think I better wait for somebody to write the HOWTO for my usage case...


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/2013042203...@ps11007.dreamhostps.com
0 new messages