-
Firewall Tool in 3.9
I am using the GUI firewall tool that is supplied in knoppix 3.9. I want to allow incoming access to ssh and an application server on port 62856. I've set the mode to expert even though I 'm not. When I start the firewall I can't connect on the ssh or application port. Do you know what I'm doing wrong? Note, I'm not using NAT and there is no firewall in front of of the PC. Below is the contents of /etc/sysconfig/firewall.iptables
Code:
# internal interfaces
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
# all outgoing
iptables -A OUTPUT -o eth0 -j ACCEPT
# SSH access
iptables -A INPUT -p tcp -i eth0 --dport 22 -j ACCEPT
# Application access
iptables -A INPUT -p tcp -i eth0 --dport 62856 -j ACCEPT
-
Ok, figured out the problem. After turning on the firewall I ran the command "iptables -L" to get a list of all the rules. I noticed that the rules I added in firewall.iptables were being appended after the DROP all rule. The solution is to insert the new rules before the DROP all rule. Just use "iptables -I" instead of "iptables -A"
So here it is.
Code:
# SSH access
iptables -I FROMINTERNET 3 -p tcp -m tcp --dport 22 -m state --state NEW -j ACCEPT
# Application access
iptables -I FROMINTERNET 4 -p tcp -m tcp --dport 62856 -m state --state NEW -j ACCEPT
Similar Threads
-
By Richard Kalp in forum General Support
Replies: 1
Last Post: 01-27-2008, 01:19 PM
-
By beerak in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 03-24-2006, 09:03 AM
-
By Albrecht Benz in forum German Forum
Replies: 3
Last Post: 02-23-2005, 09:38 AM
-
By lmsaga in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 04-25-2004, 11:12 PM
-
By FelixDzerzhinsky in forum Hdd Install / Debian / Apt
Replies: 5
Last Post: 01-27-2003, 07:02 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Windows XP, Vista, 8.1, Linux Knoppix, Office XP, (6 CDS)
$10.00

KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit
$19.99

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive
$5.99

KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED
$11.99

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick
$20.85

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick
$21.42

VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION)
$7.57

Knoppix NSM 1.2
$8.00

Hamshack Live DVD-ROM
$7.00

Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006
$33.77