Find the answer to your Linux question:
Results 1 to 5 of 5

Thread: /etc/services

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2004



    am i have to write down on /etc/services all the port that i like to block (i.e Yahoo messenger, MSN, IRC)

    what port windows messenger is (enable by default on Window$ XP) ? i'd like to block through my firewall ?

    thanks for your concerned


  2. #2
    Linux Enthusiast
    Join Date
    Feb 2005
    SE, Stockholm
    No, you should not change anything in your /etc/services file.
    Most applications use this file only as a reverse look-up for which service name a certain TCP/UDP port is using. However, some NetApps uses this file to enable certain services.

    If you wish to block some services you should/shall set up a block rule in your firewall.
    As for the default port on MSN it is 1863, however, in the newer versions of MSN you are able to use HTTP postings to MSN as well. Which is quite hard to block by port or content. What you could do is to get a list on all "login" servers at MSN, and block those IP's in your firewall, that would pretty much shut down all MSN activity at your network.

  3. #3
    Haiii.....I would like to know how to set up a block rule in iptables, i want to block some port numbers how can i do. I dont remember the command for it.......Please help.

  4. $spacer_open
  5. #4
    Linux Enthusiast scientica's Avatar
    Join Date
    Sep 2003
    South- or "Mid-" Sweden
    I'd recomend using a frontend like webmin's firewall module, setting up all the rules manually is a pain (to change a rule via the 'iptables' command one has tpo pop all following rules, and then push the changes rule and the rest, damn stupid design, ne?), but with a frontend it's as easy as chaning a rule and it's done
    Regards Scienitca (registered user #335819 - )
    A master is nothing more than a student who knows something of which he can teach to other students.

  6. #5
    Just Joined! pcrack's Avatar
    Join Date
    May 2006


    the Default port of MSN is TCP/UDP 1863. i agree to that to use webmin to block it in iptables..and u might need the use of squid to block it,in short u need squid and iptables in order to block thats ports successfully especially yahoo. it uses a some ports even port 80 they use it. gather all list of ports u want to block and its wildcard sites, then plan the blocks...hope this will help...

Posting Permissions

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