LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Internet & File Sharing (Advanced) (https://www.linuxquestions.org/questions/linux-networking-3/internet-and-file-sharing-advanced-563003/)

starmonche 06-19-2007 01:32 PM

Internet & File Sharing (Advanced)
 
i'd started a thread on this earlier before really nailing down what the problem (probably) was. the thread is "lost wan connectivity when copying files".

ra0 (192.168.1.90) connects to roommate's wireless router for internet
eth1 (192.168.8.1) feeds shared internet into WAN port of my router
eth0 (172.28.201.3) connects to a LAN port of my router
computers on my router are 172.28.201.xxx

my server shares files, runs bind, and is a dchp server (dhcp is disabled on my router)

everything runs great unless i copy a large file from pc to pc and then internet connectivity disappears from my network (including on my server)

this script gets everything up and running:

---------------------------------------------
ifconfig ra0 192.168.1.90
ifconfig eth0 172.28.201.3
ifconfig eth1 192.168.8.1
route add -net default gw 192.168.1.1
sysctl -p
iptables -t nat -A POSTROUTING -o ra0 -j SNAT --to 192.168.1.90
---------------------------------------------

i'm guessing my "problem" would go away if i was able to ensure all local traffic stays on eth0 (samba sharing, dhcp, etc) and all internet traffic stays between eth1 and ra0.

is the solution to be found by using the route or iptables command?

here's a "better" visual of how my network looks: http://geocities.com/starmonche/network.html

thank you


All times are GMT -5. The time now is 12:52 PM.