* block ssh and ping
@ 2005-02-08 11:52 varun_saa
2005-02-08 12:15 ` Samuel Díaz García
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: varun_saa @ 2005-02-08 11:52 UTC (permalink / raw)
To: netfilter
Hello,
My server is Mandrake 10.1
eth0 is WAN with static IP connected to 512k DSL
eth1 is LAN.
1. I would like to block ping to my external static IP
2. I would like to block ssh to my external static IP
Howto to do that ?
Thanks
Varun
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: block ssh and ping
2005-02-08 11:52 block ssh and ping varun_saa
@ 2005-02-08 12:15 ` Samuel Díaz García
2005-02-08 15:17 ` Sergio Basurto Juarez
2005-02-14 9:11 ` Nick Drage
2 siblings, 0 replies; 5+ messages in thread
From: Samuel Díaz García @ 2005-02-08 12:15 UTC (permalink / raw)
To: varun_saa; +Cc: netfilter
iptables -t filter -I INPUT -i eth0 -p icmp --icmp-type 8 -j DROP
iptables -t filter -I INPUT -i eth0 -p tcp --dport ssh -j DROP
varun_saa@vsnl.net writes:
> Hello,
> My server is Mandrake 10.1
> eth0 is WAN with static IP connected to 512k DSL
> eth1 is LAN.
>
> 1. I would like to block ping to my external static IP
>
> 2. I would like to block ssh to my external static IP
>
> Howto to do that ?
>
> Thanks
>
> Varun
>
>
Samuel Díaz García
Director Gerente
ArcosCom Wireless, S.L.L.
mailto:samueldg@arcoscom.com
http://www.arcoscom.com
móvil: 651 93 72 48
tlfn.: 956 70 13 15
fax: 956 70 34 83
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: block ssh and ping
2005-02-08 11:52 block ssh and ping varun_saa
2005-02-08 12:15 ` Samuel Díaz García
@ 2005-02-08 15:17 ` Sergio Basurto Juarez
2005-02-14 9:11 ` Nick Drage
2 siblings, 0 replies; 5+ messages in thread
From: Sergio Basurto Juarez @ 2005-02-08 15:17 UTC (permalink / raw)
To: netfilter
--- varun_saa@vsnl.net wrote:
> Hello,
> My server is Mandrake 10.1
> eth0 is WAN with static IP connected to 512k DSL
> eth1 is LAN.
>
> 1. I would like to block ping to my external static
> IP
>
> 2. I would like to block ssh to my external static
> IP
>
> Howto to do that ?
>
> Thanks
>
> Varun
>
This is easy to block
$UNIVERSE=0.0.0.0/0
$EXTIP=[whatever external ip you have]
iptables -A INPUT -p tcp -s $UNIVERSE -d $EXTIP
--dport 22 -j REJECT
iptables -A INPUT -p ICMP -s $UNIVERSE -d $EXTIP -j
REJECT
Also check the documentation for iptables, there is a
predefine firewall and for me works ok, nevertheless I
should modify it to fit my needs.
Regards.
=====
--
Sergio Basurto J.
If I have seen further it is by standing on the
shoulders of giants. (Isaac Newton)
--
__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: block ssh and ping
2005-02-08 11:52 block ssh and ping varun_saa
2005-02-08 12:15 ` Samuel Díaz García
2005-02-08 15:17 ` Sergio Basurto Juarez
@ 2005-02-14 9:11 ` Nick Drage
2 siblings, 0 replies; 5+ messages in thread
From: Nick Drage @ 2005-02-14 9:11 UTC (permalink / raw)
To: netfilter
On Tue, Feb 08, 2005 at 04:52:53PM +0500, varun_saa@vsnl.net wrote:
> Hello,
> My server is Mandrake 10.1
> eth0 is WAN with static IP connected to 512k DSL
> eth1 is LAN.
>
> 1. I would like to block ping to my external static IP
>
> 2. I would like to block ssh to my external static IP
>
> Howto to do that ?
Out of interest - why do you specifically want to block those protocols?
It's a good idea to block everything inbound and only permit what's
required so I'm wondering why you want to block these two.
--
Where are we going and what's with the hand basket?
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: block ssh and ping
@ 2005-02-14 17:18 Hudson Delbert J Contr 61 CS/SCBN
0 siblings, 0 replies; 5+ messages in thread
From: Hudson Delbert J Contr 61 CS/SCBN @ 2005-02-14 17:18 UTC (permalink / raw)
To: Nick Drage, netfilter
Nick,
its obvious. he wants to block ping and ssh.
that means he doesnt want those services
accessed. how hard is that. just cause you know how
means that you are allowed.
-----Original Message-----
From: netfilter-bounces@lists.netfilter.org
[mailto:netfilter-bounces@lists.netfilter.org]On Behalf Of Nick Drage
Sent: Monday, February 14, 2005 1:11 AM
To: netfilter@lists.netfilter.org
Subject: Re: block ssh and ping
On Tue, Feb 08, 2005 at 04:52:53PM +0500, varun_saa@vsnl.net wrote:
> Hello,
> My server is Mandrake 10.1
> eth0 is WAN with static IP connected to 512k DSL
> eth1 is LAN.
>
> 1. I would like to block ping to my external static IP
>
> 2. I would like to block ssh to my external static IP
>
> Howto to do that ?
Out of interest - why do you specifically want to block those protocols?
It's a good idea to block everything inbound and only permit what's
required so I'm wondering why you want to block these two.
--
Where are we going and what's with the hand basket?
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-02-14 17:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-08 11:52 block ssh and ping varun_saa
2005-02-08 12:15 ` Samuel Díaz García
2005-02-08 15:17 ` Sergio Basurto Juarez
2005-02-14 9:11 ` Nick Drage
-- strict thread matches above, loose matches on Subject: below --
2005-02-14 17:18 Hudson Delbert J Contr 61 CS/SCBN
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.