Jump to content

iptables should deny dial


Guest kaioo
 Share

Recommended Posts

Hi everybody :)

I am trying to teach my iptables to deny/drop every attemp of dialing which comes from a specific ip adress, so it should even let the connection begin to dial, clearly I want to prevent every dial from that IP as long as that rule exists. I tried first to DROP every packet for FORWARD for the tcp protocol which I assume is the usual Internet connections protocol, right? so I typed that in the console:

 

iptables -A FORWARD -p tcp -o ippp0 -j DROP

 

Then started Mozilla, but still the connection was dialing. Then I treid the same for OUTPUT:

 

iptables -A OUTPUT -p tcp -o ippp0 -j DROP

 

But still when I started Mozilla it was connecting, it wasn't sending packages out, and Mozilla wasn't able to connect to http://www.google.de or any other URL, but the connection is still dialing.. Do you know a way to stop that dialing?

ahh before I forget I typed that rule first, to allow all the other Clients to dial up:

 

iptables -t nat -A POSTROUTING -o ippp0 -j MASQUERADE

 

Thanks for any help very much in advance :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...