How to block access to an Internet Address with iptables?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat Networking > How to block access to an Internet Address with iptables?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How to block access to an Internet Address with iptables?  
Richard Gutery


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-04 12:33 AM

G'day.

I am form the Microsoft and OpenBSD world and have recently begun
using RH7.3 for my firewall.

I need to block an Internet Address.

In OpenBSD I would use -> 'block out quick on ethx ...'

I have theses two rules in my iptables file:

$IPT -t filter -A INPUT  -p tcp -s 0/0 -d 64.246.26.185  --dport 80 -m
limit --limit 2/minute -j $STOP
$IPT -t filter -A OUTPUT -p tcp -s 64.246.26.185 -d 0/0  --dport 80 -m
limit --limit 2/minute -j $STOP

$STOP and $IPT are macro substitutions that works for everything else,
so I know that's not the problem.

What am I missing or do I have to learn more?

tx in advance.

RG





[ Post a follow-up to this message ]



    Re: How to block access to an Internet Address with iptables?  
fluffy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-04 08:16 AM

rgutery@mentorits.com (Richard Gutery) wrote in
news:627e5b72.0406281321.729a8fbf@posting.google.com:

> G'day.
>
> I am form the Microsoft and OpenBSD world and have recently begun
> using RH7.3 for my firewall.
>
> I need to block an Internet Address.
>
> In OpenBSD I would use -> 'block out quick on ethx ...'
>
> I have theses two rules in my iptables file:
>
> $IPT -t filter -A INPUT  -p tcp -s 0/0 -d 64.246.26.185  --dport 80 -m
> limit --limit 2/minute -j $STOP
> $IPT -t filter -A OUTPUT -p tcp -s 64.246.26.185 -d 0/0  --dport 80 -m
> limit --limit 2/minute -j $STOP
>
> $STOP and $IPT are macro substitutions that works for everything else,
> so I know that's not the problem.
>
> What am I missing or do I have to learn more?
>
> tx in advance.
>
> RG
>

RG,

Give bastille a try.  It's available on www.bastille-linux.org and it
does work wonders.  Also, you get a good tutorial on Unix security while
you set it up.

HTH






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:09 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register