acid45
06-26-2006, 03:01 PM
Hello all,
I'm trying to get a SMB share, and a few other services, going for my network. Here is a layout of my network:
legend
ath0 wireless atheros
eth0 ehternet
|
w = wireless connection
|
|
p = physical connection / ethernet
|
|_ISP_PUB_ADDR_______R_O_U_T_E_R_______192_168_0_1 _________|
| | | |
p p w w
| | | |
xbox1 windows1(XP) linux1 windows2(98SE)
| |
p p
| |
linux2 xbox2
both linux systems are slack 10.2 kernel 2.4.31 linux1 is up to date with swaret linux2 is up to date a few months ago with swaret
linux1 = ath0 192.168.0.110
eth0 192.168.0.250
linux2 = 192.168.0.111
insignificant
xbox1 = 192.168.0.3
xbox2 = 192.168.0.51
windows1 = 192.168.0.100
windows2 = 192.168.0.50
The problem is I can't figure out what route I need to get linux 2 from able to provide two things
1) local network service such as smb
2) provide wan service such as http, smtp, ssh, ftp, etc.
I would like to have all of the services running from windows1(smb only) and linux2. The problem is the only tutorial I found says I should set up IP_MASQ on linux1 on eth0 and then just set up linux2 with linux1->eth0->ip as the gateway and then make a host route back to linux2 from linux1.
This is what I tried this on linux2
ifconfig eth0 192.168.0.111
#the ifconfig command would create the route to network 192.168.0.0 through eth0 by default.
route add defaul gw 192.168.0.250
and this on linux1
route add -host 192.168.0.111 dev eth0
I also have a basic firewall that isn't firewalling anything, so it says, other than enablng IP_MASQ, the script is unmodified except it had eth0(outside changed to ath0) and eth1(inside, changed to eth0)
What am I doing wrong? Do I even have a clue? I can't find any example or anything other than the tutorial that looks remotly like what I'm trying. Then agani in the other tutorial, the eth0 was a public address and not a private address of the same network. Could this be causing problems?
Before I moved I did have this working one way, I was able to ssh from linux2 to linux1, or vice versa. I'm also pretty sure that when I did get it working, I had to reboot, not restart indetd, to flush the routing tables so I could access anything out of my ath0.
Any input and help and direction where I can find the information I'm looking for. What I might need to do. The name of what type of setup I'm trying to configure. Anything, would be greatly appreciated.
Here is the IP_MASQ tutorial I used, I do believe the routing tutorial I used was link to from this one.
http://en.tldp.org/HOWTO/IP-Masquerade-HOWTO/index.html
I'm trying to get a SMB share, and a few other services, going for my network. Here is a layout of my network:
legend
ath0 wireless atheros
eth0 ehternet
|
w = wireless connection
|
|
p = physical connection / ethernet
|
|_ISP_PUB_ADDR_______R_O_U_T_E_R_______192_168_0_1 _________|
| | | |
p p w w
| | | |
xbox1 windows1(XP) linux1 windows2(98SE)
| |
p p
| |
linux2 xbox2
both linux systems are slack 10.2 kernel 2.4.31 linux1 is up to date with swaret linux2 is up to date a few months ago with swaret
linux1 = ath0 192.168.0.110
eth0 192.168.0.250
linux2 = 192.168.0.111
insignificant
xbox1 = 192.168.0.3
xbox2 = 192.168.0.51
windows1 = 192.168.0.100
windows2 = 192.168.0.50
The problem is I can't figure out what route I need to get linux 2 from able to provide two things
1) local network service such as smb
2) provide wan service such as http, smtp, ssh, ftp, etc.
I would like to have all of the services running from windows1(smb only) and linux2. The problem is the only tutorial I found says I should set up IP_MASQ on linux1 on eth0 and then just set up linux2 with linux1->eth0->ip as the gateway and then make a host route back to linux2 from linux1.
This is what I tried this on linux2
ifconfig eth0 192.168.0.111
#the ifconfig command would create the route to network 192.168.0.0 through eth0 by default.
route add defaul gw 192.168.0.250
and this on linux1
route add -host 192.168.0.111 dev eth0
I also have a basic firewall that isn't firewalling anything, so it says, other than enablng IP_MASQ, the script is unmodified except it had eth0(outside changed to ath0) and eth1(inside, changed to eth0)
What am I doing wrong? Do I even have a clue? I can't find any example or anything other than the tutorial that looks remotly like what I'm trying. Then agani in the other tutorial, the eth0 was a public address and not a private address of the same network. Could this be causing problems?
Before I moved I did have this working one way, I was able to ssh from linux2 to linux1, or vice versa. I'm also pretty sure that when I did get it working, I had to reboot, not restart indetd, to flush the routing tables so I could access anything out of my ath0.
Any input and help and direction where I can find the information I'm looking for. What I might need to do. The name of what type of setup I'm trying to configure. Anything, would be greatly appreciated.
Here is the IP_MASQ tutorial I used, I do believe the routing tutorial I used was link to from this one.
http://en.tldp.org/HOWTO/IP-Masquerade-HOWTO/index.html