Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Port Forwarding With Iptables, help forwarding
willard1346
post Dec 30 2002, 10:11 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 30-December 02
Member No.: 271



I cant get my iptable to work i have never forwarded a port before. I have read alot about this and it seems every one has a differnt code or something to do it. well i have came up with one that i thought it would work but it says my source is not a valid network/host. I do understand what it is telling me but i dont understand what to put in its place. I just want to forward all incoming for port 27015 to one of my other computers. My code is : iptables -t nat -A PREROUTING -p tcp -i eth0 -s 192.168.0.1:27015 -j DNAT --to-destination 192.168.0.17:27015
that is it i know there is probly some big mistake or wrong thing in there.
Thanks
Go to the top of the page
 
+Quote Post
Corey
post Dec 30 2002, 11:35 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 1,254
Joined: 21-September 02
From: St John's, Newfoundland, Canada
Member No.: 3



To forward quake requests to my client computer behind a firewall, i use the following line in my firewall script:

QUOTE
$IPTABLES -t nat -A PREROUTING -i eth0 -p tcp --dport 27015 -j DNAT --to 192.168.0.2


I haven't had any problems with this. Give it a try.


--------------------
Corey Quilliam
(former) Linuxhelp.ca Administrator
cquilliam-AT-gmail-dot-com

Want to help out Linuxhelp.net? Check out our Linuxhelp Wiki and see if there are some articles you would like to submit!!

--
Ubuntu 8.04 64-bit - Work Laptop (HP-Compaq NC6400 Core2)
Kubuntu 8.04 64-bit - Desktop (HP m8120n QuadCore)
Ubuntu 6.04 - Server (I'm not upgrading this baby until support runs out in 2012) (Some old POS dell)
Go to the top of the page
 
+Quote Post
willard1346
post Dec 31 2002, 08:06 AM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 30-December 02
Member No.: 271



Thanks that did it!
Will laugh.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 16th October 2017 - 11:10 PM