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 10-08-2004, 08:10 PM   #1
eponymous
Member
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
ports not open


HI, i have a linux box running mandrake 10.1, and i have two network cards in it:
eth0: has a connection to a router which accesses internet
eth1: which is connected to a computer running windows

I was wondering how i can open up ports 47624 tcp and 2300-2400 and also 31510 tcp, so that the windows machine can access these ports for games. Do i need to configure eth0 and eth1 seperatly? I already have NAT running on this machine using the following script (from this forum :-)):
#!/bin/sh

IPTABLES=/sbin/iptables

#All The lines below are NAT routing

# flush any old rules
$IPTABLES -F -t nat

# turn on NAT (IP masquerading for outgoing packets)
$IPTABLES -A POSTROUTING -t nat -o eth1 -j MASQUERADE

# enable IP forwarding (of incoming packets)
echo 1 > /proc/sys/net/ipv4/ip_forward

Thanks in advance
 
Old 10-08-2004, 08:38 PM   #2
NetSnake
LQ Newbie
 
Registered: Sep 2004
Location: China
Distribution: Debian 3.0r2 unstable
Posts: 28

Rep: Reputation: 15
Try not point out interface:
$IPTABLES -A POSTROUTING -t nat -j MASQUERADE
And make sure the nat and filter table's default policy is not drop:
iptables -L
iptables -t nat -L
 
Old 10-08-2004, 09:02 PM   #3
eponymous
Member
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 78

Original Poster
Rep: Reputation: 15
ive added $IPTABLES -A POSTROUTING -t nat -j MASQUERADE to the ipmasq file and re executed it, but no luck, port 47624 is still reported as being blocked
 
  


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
Cannot Open Mail Server Ports 25, 110, and 220. Other Ports will open. Binxter Linux - Newbie 9 11-29-2007 02:03 AM
open ports on linksys, i have ssh open but thats it PlatinumRik Linux - Security 1 07-07-2005 10:38 AM
Open ports! WWMPCDD Linux - Networking 6 10-28-2004 09:29 PM
How to open ports? kaboom Linux - Networking 1 01-05-2004 05:23 PM
open ports nakkaya Linux - General 2 02-05-2003 03:21 AM

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

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