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 03-13-2006, 11:41 AM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Rep: Reputation: 47
Drop firewall on 1 port in Slack


How would I drop the firewall on 1 port in Slack 10.1 or 10.2? I don't have KDE installed and would like to do this without a GUI. The port I want to open is 8888 that I am using as the port to my serving pc so others can stream mp3s from me. I am also behind a router firewall-that's another problem.
 
Old 03-13-2006, 11:55 AM   #2
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
What firewall are you using?
 
Old 03-13-2006, 12:04 PM   #3
quip
Member
 
Registered: Jun 2003
Distribution: Slackware
Posts: 100

Rep: Reputation: 15
You either write an iptables rule (there are many tutorials on this subject) or you use a higher level configuration tool. My favorite has always been shorewall.

Why do you want to drop requests on port 1? Also, what is your network setup? Is it your router you want to forward through? What brand and model is it?
 
Old 03-13-2006, 12:09 PM   #4
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
1 means one port. Or I am wrong?
 
Old 03-13-2006, 12:21 PM   #5
quip
Member
 
Registered: Jun 2003
Distribution: Slackware
Posts: 100

Rep: Reputation: 15
I apologize. When you said drop one port, I thought you meant you wanted packets to be dropped (aka silently rejected) on port #1, not open up 1 port (in this case, #8888).

If you have not already configured iptables, or installed a higher level configuration tool (like shorewall or firestarter) then I don't believe you should have any ports blocked; you should be able to connect right away.
 
Old 03-13-2006, 01:16 PM   #6
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
I have firestarter on another pc and like it-I think it needs KDE for an install and that I tried it on my Slack pc that doesn't have KDE and it wouldn't work. Don't have shorewall either. Just default Slack-probably iptables...but never configured.

So the only firwall that is blocking port 8888 would be my router's firewall?

The router is a Westell.
 
Old 03-13-2006, 01:36 PM   #7
quip
Member
 
Registered: Jun 2003
Distribution: Slackware
Posts: 100

Rep: Reputation: 15
Quote:
Originally Posted by linuxhippy

So the only firwall that is blocking port 8888 would be my router's firewall?

The router is a Westell.
Most likely, but usually this is only a problem if you are trying to connect from outside your lan (are you?).

IPTables is a configuration tool to set up the actual firewall, which is built in your kernel and called netfilter. Tools like shorewall and firestarter actually configure the configurator (IPTables).

If you haven't used any of these tools, slack will not block anything by default. For instance, on my laptop I have not done any netfilter (firewall) configuration, so any network-aware process will show up in a scan.

Let's go back a couple of steps. Exactly what program are you trying to get going? Are you trying to let your friends from the internet access it? Can you already access it from your lan?
 
Old 03-13-2006, 02:49 PM   #8
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Check that your firewall is not executable. If it is, chmod -x /etc/rc.d/rc.firewall temporarily (while you get streaming working).
 
Old 03-13-2006, 05:38 PM   #9
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
I'm trying to set up my old 200 MHz tower to be able to stream mp3s to people on the internet using Slack 10.1 (still has kernel 2.4.29). I now have a "static" IP address with www.no-ip.com and just set up gnump3d-Apache is installed but not configured...I found that gnump3d doesn't need Apache to work. My pc is 1 of 3 pcs networked by a router and DSL.

I disabled my router's firewall (temporarily), didn't see a firewall process running on my pc, and turned off the other pcs....I don't know how to enable port forwarding and I was hoping if 1 pc was connected to the router that port forwarding wouldn't matter. I am not able to stream from my Slack pc from another pc on my neighbor's network and I see no generated errors.

gnump3d and noip2 processes are running without error and configured to use port 8888.

Something is blocking my streams-I'm thinking the culprit is my router. Any ideas?

Oh, /etc/rc.d/rc.firewall doesn't exist on my pc (Slack 10.1).
 
Old 03-13-2006, 09:02 PM   #10
quip
Member
 
Registered: Jun 2003
Distribution: Slackware
Posts: 100

Rep: Reputation: 15
A couple of ideas:

1. I'm assuming that noip2 is a process that runs on your computer that informs no-ip.com of your ip address, so that when it changes, dns servers are updated, and people can still connect via your hostname. You say that gnump3d is also running on port 8888; having two processes running on the same port is not a good idea.

2. Apache is not needed for gnump3d.

3. The other pcs being on are of no consequence.

4. If people outside your home cannot connect, then yes, your culprit is probably your router (assuming that you have given enough time for your hostname to propagate to the dns servers your friends use; if not, then they could still reference you via your ip address). I have not used your brand of router before (maybe someone else here has) but you should be able to find some documentation on how to enable port forwarding on it.

Hope that helps.

Wayne
 
Old 03-14-2006, 01:21 AM   #11
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
What configuration tools does your router provide? Is it configurable through the web?
 
Old 03-14-2006, 05:01 AM   #12
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
quip's assumptions are right on about no-ip and what they do. The software that is installed for gnump3 is configured to use port 8888...I don't think no-ip cares about the port (I'll check). So port 8888 is only used by 1 process.

The router is configured through a web page at http://192.168.1.1

I just found a pdf manual for my router that should have came with it a year ago from Verizon (they sold it to me but can offer no tech support for it):

http://westell.com/content/sales/327W.pdf

My pcs typically attach to 192.168.1.45-47

Last edited by linuxhippy; 03-14-2006 at 05:15 AM.
 
Old 03-14-2006, 05:24 AM   #13
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
So connect to your router and see what you can do.
 
Old 03-14-2006, 08:49 AM   #14
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
I think I need to enable static NAT in my router. That pdf manual is helpful me thinks! Anyway, when I get home I'll try static NAT.
 
Old 03-14-2006, 10:53 AM   #15
quip
Member
 
Registered: Jun 2003
Distribution: Slackware
Posts: 100

Rep: Reputation: 15
You can configure gnump3d to use any port you choose--check out /etc/gnump3d/gnump3d.conf.

You probably will want to reserve a certain private ip addy (192.168.1.x) for your server, and then enable nat for that machine on whatever port you wish to use (currently 8888).

Sounds like you've got it from here...
 
  


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
Drop connections to port 80 at firewall machine also drop at protected network? Niceman2005 Linux - Security 2 10-27-2005 08:21 AM
Azureus +firewall: UDP-discovery drop packetsport 8008 alt_http What is Azureus doing Emmanuel_uk Linux - Networking 0 08-31-2005 06:06 AM
drop packets for specific port with iptables ohcarol Linux - Security 1 07-03-2005 10:48 AM
iptables - drop all -> allow needed OR allow all -> drop specific lucastic Linux - Security 5 12-21-2004 02:07 AM
Drop 'em at the firewall Crashed_Again Linux - Security 7 03-20-2003 05:22 PM

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

All times are GMT -5. The time now is 05:26 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