I'm running Fedora Core 4 as my base. I don't know offhand what's installed as optional bits and pieces, but iptables --list outputs a blank list (which I assume means it's installed. ;)).
Okay, network topology. I'm running a standard 'home lan' behind a wifi router, IP addresses 192.168.0.x, router does dhcp, nat, etc. I have two PCs, one XP, one FC4. The FC4 box has a second nic, connected via crossover to an embedded development box. The primary nic is say 192.168.0.66 on the local lan, the embedded box is 10.0.0.101 via the secondary nic (ie, secondary 'hidden' network 10.0.0.x).
So, the FC4 box can ping/telnet the embedded box, but the windows box obviously can't. I want to make it so that I can forward packets on one port (one particular port), pointing the XP box to the FC4 box, and having the FC4 box forward stuff along (and back) I guess making a NAT connection from XP -> embedded on that port.
I don't want to set up any further firewalling, filtering, etc. The FC4 box is a fully-working network client, and no other functions/services should be disrupted. i.e., I don't want to turn the FC4 box into a generalized NAT router/firewall for the embedded box subnet. Just a 'tunnel' for the XP and embedded boxes to talk over a given port. Use port 8888 for crafting an example.
I assume this should be one or two rules in iptables or other method, plus maybe one or two other commands to actually turn on iptables (or, again, whatever method) routing. I'm a developer, have some concept of NAT, et al, but haven't found a simple solution -- everything is making a linux box into a full firewall/router.
Set at 250 points to start, but I'll kick this up to 500 points if I got a working solution today (that is, I get a solution, and implement it and it works..). ;)
-d
by: bstrauss3Posted on 2006-04-18 at 08:51:47ID: 16479156
Actually, you probably want to use ssh to tunnel, rather than iptables. Especially if you only need say ssh or one other service.
pub/a/wire less/2001/ 02/23/wep. html - although ostensibly about wireless, shows you what you need to do.
This article: http://www.oreillynet.com/
-----Burton