Linux - NetworkingThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello Guys
I have a small anonymizer service on the web , I have a squid server listening on 127.0.0.1 port 3128. and a ssh server which users connect to it and use it as a tunnel to connect to squid server. very simple setup.
recently I have encountered a problem I have no idea how to solve it. one or some of my users are infected by a worm , and they start to send lots of request for big zip or wmv files through ssh tunnel to my squid server. and it causes my incoming traffic to go very high. in fact it is a ddos attack. but I can not know which user or IP is attacking , because they come from ssh tunnel and in squid log all of requests come from IP 127.0.0.1 like this :
1176020701.378 12063 127.0.0.1 TCP_MISS/200 109973 GET h**p://a1327.r.akareal.net/ondemand/7/1327/2110/973023381/voice.download.akamai.com/2110/wm/voa/nenaf/pers/video/PERSIAN_LATEEDITION1830v0407.wmv? - DIRECT/80.15.236.205 application/octet-stream
I already have the SSH log , you mean to check when a user is connected and then check the time of start of attacks ? I have many users , so in 5 minutes could be lots of logins. also I can not be sure the attacker starts to attack in the exact time which he is connected , may be it starts to attack some minutes after connnecting. isnt there a more reliable solution ?
SSH keeps a table mapping localhost ports to actual IP addresses. It has to do that otherwise it couldn't forward. You need to access that table. Try netstat and see what that gives you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.