LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-03-2008, 04:46 PM   #1
AigarsABCD
LQ Newbie
 
Registered: Jun 2008
Location: Latvia
Distribution: Slackware
Posts: 5

Rep: Reputation: 0
Getting "banned" on Slackware 12


Hello.
I have set up a Slackware 12 box as a web server, FTP, DNS, use some simple iptables rules. The problem is that if I have a SSH connection open, after some half hour, maybe hour, the SSH disconnects and I can't acces any of the web services on the server - no http, no ftp, nothing. It seems, that server just bans my IP and forbid any access. Nothing of that shows up in log files.
Then if I plug from wireless to wired, my IP changes and I can access the server again.
Maybe anybody have some ideas, what's wrong? Is it some anti-spam protection or what?
Sorry, if this is discussed before.
Thank you for any help.
 
Old 06-03-2008, 05:58 PM   #2
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
try adding your IP to the hosts.allow file in /etc.

Other than that, try using fail2ban or denyhosts, they keep track of all the banning of most hacking attempts. That is what i used whn i had an SSH and FTP server running. i just left Iptables alone and the two programs filled it in for me.

Hope this helps
 
Old 06-03-2008, 10:00 PM   #3
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
what are your "simple iptables rules"?
 
Old 06-04-2008, 06:26 AM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Are you talking about a home-based computer?

If so, your ISP might not allow you to run servers of any sort unless you upgrade to a "business" type internet plan. It sucks, but that's the way it works...
 
Old 06-04-2008, 10:33 AM   #5
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by rkelsen View Post
Are you talking about a home-based computer?

If so, your ISP might not allow you to run servers of any sort unless you upgrade to a "business" type internet plan. It sucks, but that's the way it works...
If all the tests were done on the local network this shouldn't be a problem, though.
 
Old 06-05-2008, 01:25 PM   #6
AigarsABCD
LQ Newbie
 
Registered: Jun 2008
Location: Latvia
Distribution: Slackware
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you for your reply.

rkelsen> yes, it is a home based computer, but it is behind a NAT firewall (ports forwarded) and I am accessing the server from local network. SSH is not allowed to outside world.
My ISP allows to run servers.

shadowsnipes> my simple rules
Code:
#Firewal rules

iptables -F
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -s 127.0.0.0/8 -d 127.0.0.0/8 -i lo -j ACCEPT
iptables -A INPUT -p icmp -j ACCEPT


iptables -A INPUT -p udp --dport 53 -j ACCEPT

iptables -A INPUT -p tcp --dport 20 -j ACCEPT
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p tcp --dport 25 -j ACCEPT
iptables -A INPUT -p tcp --dport 53 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 110 -j ACCEPT
iptables -A INPUT -p tcp --dport 143 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
iptables -A INPUT -p tcp --dport 587 -j ACCEPT
iptables -A INPUT -p tcp --dport 3128 -j ACCEPT
iptables -A INPUT -p tcp --dport 8000 -j ACCEPT
iptables -A INPUT -p udp --dport 8000 -j ACCEPT

iptables -A INPUT -p tcp --dport 4081 -j ACCEPT
iptables -A INPUT -p tcp --dport 4001 -j ACCEPT

iptables -A INPUT -p tcp --dport 10000 -j ACCEPT
iptables -A INPUT -p tcp --dport 20000 -j ACCEPT
Anyway, the problem is not so big to me. I just thought, maybe someone had this same problem.
 
Old 06-05-2008, 01:46 PM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by AigarsABCD View Post
Then if I plug from wireless to wired, my IP changes and I can access the server again.
Wait a minute, do you still have access to a network or internet during this time? Sounds like an issue with your wireless connection losing connectivity, not your server. Is the server on wireless or wired?

Last edited by trickykid; 06-05-2008 at 01:47 PM.
 
Old 06-05-2008, 03:44 PM   #8
AigarsABCD
LQ Newbie
 
Registered: Jun 2008
Location: Latvia
Distribution: Slackware
Posts: 5

Original Poster
Rep: Reputation: 0
Server is wired.
My laptop ir connected to wireless AP, which is connected to local network.
But I think this is not a Wireless problem, since internet/lan still works and if I restart the server, then I can access it again.

Last edited by AigarsABCD; 06-05-2008 at 03:46 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
Any way to get "Alice"; "Call of Duty" series and "Descent 3" to work? JBailey742 Linux - Games 13 06-23-2006 01:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration