LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-09-2009, 11:56 AM   #1
invader44
Member
 
Registered: Dec 2008
Location: America
Distribution: Ubuntu 11.04
Posts: 64

Rep: Reputation: 15
generated firewall


hi,
I got downloaded a generated firewall for my slackware box. Made the rc.firewall and put the srcipt in it and it started it up. But when I try to putty into the slackware box, I can't get in it. I could before I put the firewall on it. Where in that script should I change it, so that it allows me to putty into it?
thanks,
noob
 
Old 10-09-2009, 12:00 PM   #2
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
What does your rc.firewall look like?
 
Old 10-09-2009, 03:06 PM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I believe you have to allow port 22 tcp.

Code:
iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT
Just note that this leaves you open to external ssh logins, so it makes you more vulnerable.
 
Old 10-09-2009, 04:58 PM   #4
sn9ke_eyes
Member
 
Registered: Feb 2003
Location: Texas
Distribution: slackware 11
Posts: 90

Rep: Reputation: 15
Quote:
Originally Posted by H_TeXMeX_H View Post
I believe you have to allow port 22 tcp.

Code:
iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT
Just note that this leaves you open to external ssh logins, so it makes you more vulnerable.
If you always connect from the same network or host you can add the source -s to the string like this (assuming your local network was 192.168.1.x :

-s 192.168.1.10 for that specfic host
-s 192.168.1.0/24 for that network

iptables -A tcp_inbound -p TCP -s 192.168.1.0/24 --destination-port 22 -j ACCEPT

Last edited by sn9ke_eyes; 10-09-2009 at 04:59 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
auto-generated firewall does not start up properly nass Slackware 13 05-28-2007 06:22 AM
fc6 generated firewall rules dansawyer Linux - Security 5 02-01-2007 10:02 PM
Error 2 & 1 generated TuxFreak Linux - Software 1 04-23-2005 06:59 AM
no output generated suchi_s Programming 2 09-08-2004 05:08 AM
How are the numbers generated? pe2338 Linux - General 1 09-24-2003 10:00 AM

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

All times are GMT -5. The time now is 02:18 AM.

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