Results 1 to 8 of 8

Thread: howe to close ping on ubuntu Server ??

  1. #1
    Join Date
    Oct 2012
    Beans
    8

    howe to close ping on ubuntu Server ??

    Hi ,

    Howe to close ping all time on ubuntu Server ??

    and howe to make Fast connection to Ununtu Server , Contact fast and to UBUNTU Server

  2. #2
    Join Date
    Jun 2011
    Location
    Las Vegas
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: howe to close ping on ubuntu Server ??

    What do you mean close ping? What command are you using?

  3. #3
    Join Date
    Feb 2010
    Location
    In My Food Forest
    Beans
    9,318

    Re: howe to close ping on ubuntu Server ??

    Cheers & Beers, uRock
    [SIGPIC][/SIGPIC]

  4. #4
    Join Date
    Oct 2012
    Beans
    8

    Re: howe to close ping on ubuntu Server ??

    Quote Originally Posted by hydn79 View Post
    What do you mean close ping? What command are you using?
    I am using ubuntu Server 10.04

    I want to close ping

    -----------------

    example -

    ping 213.14.231.196

    i want to see - requset

    and want to close the ping all time , can you help me ?

  5. #5
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,699

    Re: howe to close ping on ubuntu Server ??

    My advice is to allow pings - they are useful for faultfinding.

    However, if you want to block pings, you need to decide what to block. Do you want to prevent other users pinging your server, or do you want to block your server from pinging other machines? What about ICMP Unreachable messages - do you want to block them too? Either way, if you follow the links uRock gave, you should be able to work it out. If not, come back and explain exactly what you want to block.

    As for "make Fast connection to Ununtu Server", I know the server likes to do a DNS lookup to find the name of whoever is connecting to it. If the DNS setup is wrong, this can take time to decide it doesn't know the name. It can help to put the name and IP address of clients into either the DNS server or into your server's /etc/hosts file to speed up this name resolution.

  6. #6
    Join Date
    Oct 2012
    Beans
    8

    Re: howe to close ping on ubuntu Server ??

    Quote Originally Posted by The Cog View Post
    My advice is to allow pings - they are useful for faultfinding.

    However, if you want to block pings, you need to decide what to block. Do you want to prevent other users pinging your server, or do you want to block your server from pinging other machines? What about ICMP Unreachable messages - do you want to block them too? Either way, if you follow the links uRock gave, you should be able to work it out. If not, come back and explain exactly what you want to block.

    As for "make Fast connection to Ununtu Server", I know the server likes to do a DNS lookup to find the name of whoever is connecting to it. If the DNS setup is wrong, this can take time to decide it doesn't know the name. It can help to put the name and IP address of clients into either the DNS server or into your server's /etc/hosts file to speed up this name resolution.

    when i enter this command

    echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all


    I am disable the ping on server , but when i restart the server , the ping it enable ?

  7. #7
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,699

    Re: howe to close ping on ubuntu Server ??

    Quote Originally Posted by rzeer View Post
    when i enter this command

    echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all


    I am disable the ping on server , but when i restart the server , the ping it enable ?
    Ah yes, that just changes the current setting. It won't survive a reboot. The file where you make those settings permanent is /etc/sysctl.conf. I guess you need a line adding like:
    Code:
    net.ipv4.icmp_echo_ignore_all = 0

  8. #8
    cprofitt's Avatar
    cprofitt is offline νόησις νοήσεως - nóesis noéseos
    Join Date
    Oct 2006
    Location
    平静
    Beans
    1,451
    Distro
    Ubuntu Development Release

    Re: howe to close ping on ubuntu Server ??

    don't forget about IPv6 if it is in your environment.

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
  •