LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-01-2006, 06:47 PM   #1
pokerface3
LQ Newbie
 
Registered: May 2006
Posts: 2

Rep: Reputation: 0
Talking Iptables please


ok. this is my first post here! i have done some research for iptables but i cant take it anymore! i need some rest from reading but i really need this to work! i have a linux pc being used a my router and as a server. i have iptables installed (may i add my cuzin did 99% of all the work on this router so to say i know everything would be a lie), apache, and some other stuff. now what im trying to do is open a port that will allow port 8602 to be open tcp and udp so a program i have called xbconnect (google it, the forum wont let me post the url because of spamming purposes) so that i can play online. please tell me the command. ive used this one but it doesnt seem to work:
Code:
iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 8602 -j DNAT --to-destination 192.168.2.2
and
Code:
iptables -t nat -A PREROUTING -i ppp0 -p udp --dport 8602 -j DNAT --to-destination 192.168.2.2
so what sould i do to get this thing to work. please help will be greatly thanked. i know there are many tutorials but i cant read another manual/tutorial right now however i need this to work as soon as possible.
need more info? just ask and ill tell you.
 
Old 06-01-2006, 11:59 PM   #2
nevarlen
Member
 
Registered: Feb 2005
Distribution: Debian 3.x & Fedora Core 3, Debie on IBM Thinkpad
Posts: 68

Rep: Reputation: 15
This is how I used to open ports in iptables:
iptables -A INPUT -i eth0 -p tcp --dport 8602 -m state --state ESTABLISHED -j
ACCEPT
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 09:20 PM
Iptables - Couldn't load target `ACCPET':/lib/iptables/libipt_ACCPET.so: z00t Linux - Security 3 01-26-2004 03:24 AM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 07:08 AM
iptables book wich one can you pll recomment to be an iptables expert? linuxownt Linux - General 2 06-26-2003 05:38 PM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:30 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration