LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-01-2003, 10:48 AM   #1
kalock
LQ Newbie
 
Registered: Nov 2003
Posts: 10

Rep: Reputation: 0
Unhappy MDK 9.2 firewall and opening ports


hi all, im just wondering how in the heck i am to open ports on a clean install of MDK 9.2. i cant type in iptables or ipchains to the console (i get "not found"), i really just dont know what kind of security im using with this distro.

i need to open 3 ports for services that are running fine internally, all i need is external access, but i dont even know where to begin. can anyone help?

thanks.
 
Old 12-01-2003, 11:21 AM   #2
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
are you trying this as root or as a user?
 
Old 12-01-2003, 11:30 AM   #3
rleten
LQ Newbie
 
Registered: Nov 2003
Location: belgium
Posts: 4

Rep: Reputation: 0
mandrake control center -> firewall -> advanced... here you can fill in the ports you need to stay open..
 
Old 12-01-2003, 11:53 AM   #4
kalock
LQ Newbie
 
Registered: Nov 2003
Posts: 10

Original Poster
Rep: Reputation: 0
i am trying everything as root. in mdk 8.2 i seem to have had Bastille, which was a whole different problem of its own, becuase there was still no easy way to open ports.

regarding the mandrake control center:
i rarely use X, and sometimes do not even install it. is there another way to make the same changes via console/ssh?? thanks.
 
Old 12-01-2003, 12:56 PM   #5
rleten
LQ Newbie
 
Registered: Nov 2003
Location: belgium
Posts: 4

Rep: Reputation: 0
as root... drakfirewall

succes
 
Old 12-01-2003, 01:14 PM   #6
kalock
LQ Newbie
 
Registered: Nov 2003
Posts: 10

Original Poster
Rep: Reputation: 0
ok, as root i ran drakfirewall and when it came up, was set to No Firewall. this i know is not safe but is what i wanted when i installed. obviously this wasnt working so i went into advanced mode and added the 3 ports manually like so:

###/tcp ###/udp

after exiting, this appears to have done nothing. does each entry here need a similar entry in /etc/services in order to work??

thanks.
 
Old 12-01-2003, 02:19 PM   #7
rleten
LQ Newbie
 
Registered: Nov 2003
Location: belgium
Posts: 4

Rep: Reputation: 0
on my system it worked well after reboot..
 
Old 12-01-2003, 02:32 PM   #8
kalock
LQ Newbie
 
Registered: Nov 2003
Posts: 10

Original Poster
Rep: Reputation: 0
i took your suggestion and rebooted. nothing different. it seems rather odd that with a No Firewall setting i couldnt connect to these running services either.


Last edited by kalock; 12-01-2003 at 02:36 PM.
 
Old 12-01-2003, 03:43 PM   #9
rleten
LQ Newbie
 
Registered: Nov 2003
Location: belgium
Posts: 4

Rep: Reputation: 0
strange... i have the firewall up and ports set open for p2p and works fine here..
 
Old 12-01-2003, 04:47 PM   #10
kalock
LQ Newbie
 
Registered: Nov 2003
Posts: 10

Original Poster
Rep: Reputation: 0
if anyone can think of why this would be happening, please let me know.

i am also using a linksys router and have tried using both port forwarding and DMZ host settings to no avil.

thanks.
 
Old 12-02-2003, 08:28 AM   #11
kalock
LQ Newbie
 
Registered: Nov 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Angry more info

hi, im going to provide some more info so that maybe a flag will go off in someone's head when they look at the post.

when the same computer is booted into win98, port forwarding (from the linksys router) works fine.

when the computer is in linux, port forwarding (from the linksys router) for SSH on 22 works fine as well.

this leads me to beleive that it is not the linksys router that is rejecting the connection. further, the linksys is routing fine to a yellowdog linux machine, and also to an OSX machine's services, using the port forwarding feature.

when i run the drakfirewall application, i have it set to "No Firewall", and that is the only selection made.

the 3 ports i wish to use externally are 5555, 27744, and 27777. none of these ports are registered to anything else, and are not listed in /etc/services at all.

the services are running and accepting connections on these ports from the local machine, and also from the LAN.

i cannot find iptables/ipchains on my machine and so cannot flush out the config to see if that is the culprit.

perhaps if someone could tell me how to check the logs both on the linksys and the mandrake box i could try to figure out in more detail what is happening? i dont know where to look for these logs though, so help is appreciated. thank you!
 
Old 12-02-2003, 12:20 PM   #12
kalock
LQ Newbie
 
Registered: Nov 2003
Posts: 10

Original Poster
Rep: Reputation: 0
ok, i figured this out myself. i didnt realize that pasv port ranges were so huge. a great majority of my ports were getting forwarded to the wrong computer due to pasv settings. oops!
 
  


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
opening ports I think jleipert Linux - Security 7 09-04-2005 09:14 AM
Opening ports lunke Linux - Security 10 06-07-2005 03:04 AM
Opening ports on Fedora Firewall ProgramGeek Fedora 2 07-22-2004 10:40 PM
Opening firewall ports bezaleel Linux - Newbie 2 02-16-2004 07:14 AM
Opening Ports george3k Linux - Newbie 7 02-16-2003 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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