I've tried asking about this on Usenet, and also I've read a few tutorials, but I'm finding it hard to get answers.
Let's say I've two interfaces: eth0 and eth1.
I want there to be a virtual router between eth0 and eth1. Packets arriving at eth0 should be forwarded to eth1, and vice versa. I'm not talking about NAT, or IP masquerading, but simply about forwarding packets.
So lets say we do the following:
ifconfig eth0 192.168.1.1 netmask 255.255.255.0
ifconfig eth1 10.10.10.254 netmask 255.255.255.0
What do I do next to ensure that when a packet arrives at eth0, that it will be forwarded on to eth1, and vice versa.
Once I've got that down I'll move on to implementing NAT.
This page may help:
If that doesn't give you enough info, putting "Linux IP forwarding eth0 eth1" into Google gives about 58,000 pages.
Stop the TSA now! Boycott the airlines.
you would use iptables for that. type "man iptables" at your command prompta dn read up on it, or check out http://iptables-tutorial.frozentux.n...-tutorial.html
shouldnt this be in a help board? or the newberskate board? If you need help here you should put your posts into this board: http://forums.remote-exploit.org/forumdisplay.php?f=15
For ip forwarding
To easily implement
Go to the above link and create a script to do what you want it to do. When finished, read the script and you should be able to figure out what it's doing. It might even show you how to turn on ip forwarding. You may need to edit the resulting script to get rid of annoying error messages, depending on the way your system and kernel are configured, but it provides a good starting point. Backtrack puts iptables in /usr/sbin, for instance, but the script calls /sbin/iptables. Easily fixed. I just tried the single firewall with BT and after fixing the above error, it works fine.
You'll then need to RTFM iptables, but you'll at least have an idea about what you are looking for. Read up on dnsmasq and you've got a router, with dhcp and name server, all on your local machine.
You can write a few simple scripts to automate it and easily have a router, a wireless access point, or a transparent bridge (think tap) with a simple command.