Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-11-2003, 06:41 PM
|
#1
|
|
Member
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428
Rep:
|
Block incoming port Iptables
I need to be able to block all port 135 traffic going though my linux router, incoming and outgoing, how can I add a rule to my iptables to do that, I don't care to save the rule I just need to add it to what is already loaded.
This is a cache server so iptables is already being used, I want to block port 135 to stop a new virus that is really hitting our customers (W32.Blaster.Worm)
Thanks, I hope to hear from someone soon!
|
|
|
|
08-11-2003, 07:26 PM
|
#2
|
|
Member
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428
Original Poster
Rep:
|
Ok I think I got it, post if I did it wrong:
iptables -A INPUT -p tcp -i eth0 -s 0/0 --dport 135 -j DROP
iptables -A INPUT -p udp -i eth0 -s 0/0 --dport 135 -j DROP
When I did a iptables -L they were all there and I can still route traffic so I will assume that it is working, is there a log to see if it denies the traffic?
Thanks
|
|
|
|
08-11-2003, 08:12 PM
|
#3
|
|
Member
Registered: Jan 2003
Location: 127.0.0.1
Distribution: Fedora&Gentoo
Posts: 207
Rep:
|
How about having your customers patch their boxes?
Looks like you did it right. You can always have someone port scan you or do it online at someplace like http://scan.sygate.com/
|
|
|
|
08-11-2003, 08:21 PM
|
#4
|
|
Member
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428
Original Poster
Rep:
|
We have well over 1000 customers going through us and wanted a way to stop it quick, most of our customers don't have a clue what OS they have not alone if they patched there system, most of them don't know what Internet Exporer is even though they use it every day.
So in short by blocking this as quick as I could I just made my day tomarrow much better because I now don't need to trouble shoot 1,000 plus customers just the few that got it before I blocked it.
|
|
|
|
08-11-2003, 08:27 PM
|
#5
|
|
Member
Registered: Jan 2003
Location: 127.0.0.1
Distribution: Fedora&Gentoo
Posts: 207
Rep:
|
Oh I know...I was just giving you crap. I knew what you were up to. It was kinda aiming at being a windows joke
|
|
|
|
08-11-2003, 08:32 PM
|
#6
|
|
Member
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428
Original Poster
Rep:
|
The owner of the company I work for has been getting more and more linux friendly as we go throught one problem to another with our windows servers to where I was talking to him tonight and he said we are going to move all but 1 of our servers to linux in the next couple of weeks :-)
I have been slowly moving servers over to linux as we install new ones but now we will be migrating our existing nt 4.0 and 2000 servers over to linux, much fun to be had and a good tribute to Linux.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting 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
|
|
|
All times are GMT -5. The time now is 02:57 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|