Quote:
Originally posted by pilot1
I plug my cable modem into eth0 (haven't tried it yet), and then would I plug eth1 into the WAN port on my router, or the Uplink port on my router?
|
normal port, uplink is used from hub to hub
[quote]
Also, I have this line in iptables to forward the ports:
iptables -t nat -A PREROUTING -p tcp -o eth0 -dport 21 -j DNAT --to-destination 192.168.1.101
[quote]
ok so this is going to grab any outgoing ftp commands and route then back to the 192.168.1.101 box. Is that what you want?
Quote:
192.168.1.102 is my Linux box to use as a router, and 192.168.1.1 is my Linksys router/WAP.
Am I going to forward the ports directly from my Linux router to the computer I want them to go to, or will I need to forward them from my Linux router to my WAP and have that forward them to the computer they should reach?
|
if you have a masqeraded connection already all you really need to do is setup the gateway settings on your wireless machines to point towards the linux gateway. The routers typically have at least two network interfaces a wired WAN port, maybe wired lan ports and of course the wireless ports. So it may be easier just to set up the wan port to point to the linux box, and setup the wired land and wireless addresses to be in a different address range (maybe 192.168.2.0 or whatever) and let the router translate the adresses as it goes.