Guest kaioo Posted October 8, 2002 Report Share Posted October 8, 2002 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 :) Quote Link to comment Share on other sites More sharing options...
Guest kaioo Posted October 10, 2002 Report Share Posted October 10, 2002 just to inform those who have the same problem: iptables -A FORWARD -s x.x.x.x -j DROP this command solves the problem :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.