Results 1 to 9 of 9

Thread: how to log ip address on ubuntu ?

  1. #1
    Join Date
    Oct 2008
    Beans
    286
    Distro
    Ubuntu 8.04 Hardy Heron

    how to log ip address on ubuntu ?

    I wanted to keep track of what ip address connected from ISP since it's a dynamic ip address.

    Is there any script or application that can keep track and log ip address connected to the internet ?

    Thank you

  2. #2
    Join Date
    Oct 2008
    Location
    philippines
    Beans
    618
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: how to log ip address on ubuntu ?

    ...are you not using firestarter?

  3. #3
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: how to log ip address on ubuntu ?

    This will tell you your external IP address.
    I remember a thread asking how to find external IP address from command line - I'll need to search for it (or you can )
    You can also check a service like dyndns.com or no-ip.com.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  4. #4
    Join Date
    Oct 2008
    Beans
    286
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: how to log ip address on ubuntu ?

    Quote Originally Posted by byStanderone View Post
    ...are you not using firestarter?
    Does it log ip address ?


    Quote Originally Posted by Iowan View Post
    This will tell you your external IP address.
    I remember a thread asking how to find external IP address from command line - I'll need to search for it (or you can )
    You can also check a service like dyndns.com or no-ip.com.
    I mean I wanted to log my ip address so next time I am able to trace back at certain date on certain day which IP address I connected

  5. #5
    Join Date
    Jan 2009
    Beans
    Hidden!

    Re: how to log ip address on ubuntu ?

    Code:
    grep -i "ppp" /var/log/messages
    this will show your all your entries, till the log gets rotated.

    though this'll work only if you are using bridged mode.

  6. #6
    Join Date
    Oct 2008
    Beans
    286
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: how to log ip address on ubuntu ?

    I am usinga router which it get ip address automatically

  7. #7
    Join Date
    Feb 2009
    Beans
    7

    Re: how to log ip address on ubuntu ?

    x33a - this grep command does not show external IP address - it shows this:
    Dec 20 13:15:15 XXX-desktop kernel: [ 0.902574] PPP generic driver version 2.4.2
    Dec 21 09:02:36 XXX-desktop kernel: [ 0.902581] PPP generic driver version 2.4.2
    Dec 22 06:27:28 XXX-desktop kernel: [ 0.906573] PPP generic driver version 2.4.2
    Dec 23 07:02:17 XXX-desktop kernel: [ 0.906559] PPP generic driver version 2.4.2

    Or am I missing something in the command?

  8. #8
    Join Date
    Jan 2009
    Beans
    Hidden!

    Re: how to log ip address on ubuntu ?

    @ indigene,

    are you manually connecting to the net? it'll only work in that case.

    does ifconfig show the ip address?

  9. #9
    Join Date
    Feb 2009
    Beans
    7

    Re: how to log ip address on ubuntu ?

    No I'm not manually connecting. I have broadband on ADSL.

    if config only shows the local IP address (inet addr:192.168.5.100 Bcast:192.168.5.255 Mask:255.255.255.0) not the external.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •