Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Question and 'ping'.

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
13 posts • Page 1 of 1
Author
Message
nahpets
Veteran
Veteran
User avatar
Posts: 1178
Joined: Sun Oct 05, 2003 11:18 pm
Location: Montreal, Canada

Question and 'ping'.

  • Quote

Post by nahpets » Wed Aug 16, 2006 8:54 pm

My university recently started blocking ALL outgoing and incoming pings. I noticed this because 'netselect' doesn't work anymore. I sent an email to admin to ask about it, and they replied with this:
From what I understand to open outgoing ping we also need to allow
incoming ping (for the reply). Therefore, for security reasons, ping is
restricted to only certain subnets.
My firewall (shorewall) ignores all incoming ping traffic but I'm still able to properly send out pings. My initial reaction is that you should be able to block incoming pings while still allowing outgoing pings... Is there a sysadmin here who can confirm or refute the statement above?
Let me guess, you picked out yet another colorful box with a crank that I'm expected to turn and turn until OOP! big shock, a jack pops out and you laugh and the kids laugh and the dog laughs and I die a little inside.
Top
syscrash
Guru
Guru
User avatar
Posts: 541
Joined: Mon Apr 14, 2003 12:43 am
Contact:
Contact syscrash
Website

  • Quote

Post by syscrash » Wed Aug 16, 2006 9:22 pm

I believe your firewall is receiving pings, it is just not replying to them (they are ignored.)
Play ET? Come by #gentoo.et on freenode!
http://syscrash.ca
Top
nahpets
Veteran
Veteran
User avatar
Posts: 1178
Joined: Sun Oct 05, 2003 11:18 pm
Location: Montreal, Canada

  • Quote

Post by nahpets » Wed Aug 16, 2006 9:28 pm

The firewall on my box ignores all pings, that's true. The problem is that the network admins have blocked all outgoing and incoming ping traffic for security reasons. My question is do they really need to block outgoing pings as well as incoming ping traffic? Can't they simply block incoming ping sweeps?
Let me guess, you picked out yet another colorful box with a crank that I'm expected to turn and turn until OOP! big shock, a jack pops out and you laugh and the kids laugh and the dog laughs and I die a little inside.
Top
think4urs11
Bodhisattva
Bodhisattva
User avatar
Posts: 6659
Joined: Wed Jun 25, 2003 9:51 pm
Location: above the cloud

  • Quote

Post by think4urs11 » Wed Aug 16, 2006 10:01 pm

Mhh well yes ... theoretically it is possible to misuse icmp to tunnel traffic through a firewall which does not block it; on the other hand this is true for every single protocol and/or port which is allowed for going out (and letting back in the answer packets).

Either your sysadmin had a bad day or no idea at all. Depends to some extend to the exact network setup you have.
Normally they don't need to allow 'outside->inside icmp' in general but _only_ the answers for the ping _you_ send out before.
(this is whats called stateful - the term isn't normally used for icmp though; in iptables-speak this is related traffic)
Connection tracking refers to the ability to maintain state information about a connection in memory tables, such as source and destination ip address and port number pairs (known as socket pairs), protocol types, connection state and timeouts. Firewalls that do this are known as stateful.
A setup like you describe here though (in->out icmp allowed + _all_ out->in icmp dropped) makes no sense at all. Why allow to send data outwards but deny the reception of answers for this data?
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Top
nahpets
Veteran
Veteran
User avatar
Posts: 1178
Joined: Sun Oct 05, 2003 11:18 pm
Location: Montreal, Canada

  • Quote

Post by nahpets » Thu Aug 17, 2006 2:09 am

A setup like you describe here though (in->out icmp allowed + _all_ out->in icmp dropped) makes no sense at all. Why allow to send data outwards but deny the reception of answers for this data?
The reason why the sysadmins are stopping out->in ping traffic is because the university network is to stop ping sweeps etc. So in order to accomplish this, they've blocked ALL ping traffic, ie. out->in, in->out. I can't even ping yahoo...

What I'd like to know from someone who has experience in these matters is if there's really no way to enable the following:
  • I can ping yahoo from inside the network.
  • Yahoo can't ping me.
Let me guess, you picked out yet another colorful box with a crank that I'm expected to turn and turn until OOP! big shock, a jack pops out and you laugh and the kids laugh and the dog laughs and I die a little inside.
Top
James Wells
n00b
n00b
User avatar
Posts: 57
Joined: Fri Sep 10, 2004 4:26 pm

  • Quote

Post by James Wells » Thu Aug 17, 2006 2:46 am

Greetings,
nahpets wrote:What I'd like to know from someone who has experience in these matters is if there's really no way to enable the following:
  • I can ping yahoo from inside the network.
  • Yahoo can't ping me.
You might want to check out hping and traceroute-ng. Hping will allow you to use port specific, non-ICMP pings. Traceroute-ng will allow you to use port specific, non-ICMP traces. For example hping -p http www.yahoo.com.
Top
think4urs11
Bodhisattva
Bodhisattva
User avatar
Posts: 6659
Joined: Wed Jun 25, 2003 9:51 pm
Location: above the cloud

  • Quote

Post by think4urs11 » Thu Aug 17, 2006 5:44 am

nahpets wrote:What I'd like to know from someone who has experience in these matters is if there's really no way to enable the following:
  • I can ping yahoo from inside the network.
  • Yahoo can't ping me.
Think4UrS11 wrote:Normally they don't need to allow 'outside->inside icmp' in general but _only_ the answers for the ping _you_ send out before.
(this is whats called stateful - the term isn't normally used for icmp though; in iptables-speak this is related traffic)
In other words - yes, possible with ease; with nearly every firewall besides 'historic' ones.
(to be precise, easily possible with every firewall software which works stateful; somewhat tricky at best if they use a plain/dumb packet filter)
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Top
nahpets
Veteran
Veteran
User avatar
Posts: 1178
Joined: Sun Oct 05, 2003 11:18 pm
Location: Montreal, Canada

  • Quote

Post by nahpets » Thu Aug 17, 2006 6:00 pm

Ok... thanks for clearing that up. I wanted to be sure that if can be easily accomplished before I bring that up to the sysadmins.
Let me guess, you picked out yet another colorful box with a crank that I'm expected to turn and turn until OOP! big shock, a jack pops out and you laugh and the kids laugh and the dog laughs and I die a little inside.
Top
syscrash
Guru
Guru
User avatar
Posts: 541
Joined: Mon Apr 14, 2003 12:43 am
Contact:
Contact syscrash
Website

  • Quote

Post by syscrash » Fri Aug 18, 2006 9:08 pm

nahpets wrote:Ok... thanks for clearing that up. I wanted to be sure that if can be easily accomplished before I bring that up to the sysadmins.
I see your location says Montreal.. which university are you talking about so that I can perhaps decide not to go there? :P
Play ET? Come by #gentoo.et on freenode!
http://syscrash.ca
Top
expat_iain
Guru
Guru
Posts: 361
Joined: Fri Jan 09, 2004 5:53 pm
Location: Malta GC

  • Quote

Post by expat_iain » Fri Aug 18, 2006 9:53 pm

There are different ICMP types. The key type you are looking at here are ICMP_ECHO_REQUEST and ICMP_ECHO_REPLY. If I have understood correctly, then the sysadmin should do the following:

Inside->Outside:
Allow ICMP_ANY

Outside->Inside
Allow ICMP_ECHO_REPLY
Block ICMP_ANY

Regs.

Iain.
Top
nahpets
Veteran
Veteran
User avatar
Posts: 1178
Joined: Sun Oct 05, 2003 11:18 pm
Location: Montreal, Canada

  • Quote

Post by nahpets » Sat Aug 19, 2006 6:47 am

syscrash wrote:
nahpets wrote:Ok... thanks for clearing that up. I wanted to be sure that if can be easily accomplished before I bring that up to the sysadmins.
I see your location says Montreal.. which university are you talking about so that I can perhaps decide not to go there? :P
To be fair, I don't think that the reputation of the entire university should be degraded because of something as trivial as blocking pings. Remember that a university comprises of many faculties, departments and employees. Stuff like this happens all the time in any large bureaucracy

expat_iain: Thanks for the tip... I'll forward the info to the admins and see what happens.
Let me guess, you picked out yet another colorful box with a crank that I'm expected to turn and turn until OOP! big shock, a jack pops out and you laugh and the kids laugh and the dog laughs and I die a little inside.
Top
syscrash
Guru
Guru
User avatar
Posts: 541
Joined: Mon Apr 14, 2003 12:43 am
Contact:
Contact syscrash
Website

  • Quote

Post by syscrash » Sat Aug 19, 2006 10:38 pm

nahpets wrote:
syscrash wrote:
nahpets wrote:Ok... thanks for clearing that up. I wanted to be sure that if can be easily accomplished before I bring that up to the sysadmins.
I see your location says Montreal.. which university are you talking about so that I can perhaps decide not to go there? :P
To be fair, I don't think that the reputation of the entire university should be degraded because of something as trivial as blocking pings. Remember that a university comprises of many faculties, departments and employees. Stuff like this happens all the time in any large bureaucracy
I know, hence the :P :)
Play ET? Come by #gentoo.et on freenode!
http://syscrash.ca
Top
nahpets
Veteran
Veteran
User avatar
Posts: 1178
Joined: Sun Oct 05, 2003 11:18 pm
Location: Montreal, Canada

  • Quote

Post by nahpets » Sun Aug 20, 2006 10:21 pm

hah... true. I didn't notice the smiley the frist time I read your post.
Let me guess, you picked out yet another colorful box with a crank that I'm expected to turn and turn until OOP! big shock, a jack pops out and you laugh and the kids laugh and the dog laughs and I die a little inside.
Top
Post Reply

13 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic