View previous topic :: View next topic |
Author |
Message |
krusty_ar Guru
Joined: 03 Oct 2002 Posts: 560 Location: Rosario, Argentina
|
Posted: Wed Jan 29, 2003 3:00 pm Post subject: One nic transparent proxy |
|
|
not very gentoo related but...
i got my hands on an old 386 that i want to use as a proxy for a home network, the thing is, i only have one isa nic, now, i use a nic that goes from my box to the router (cisco 677), that works with or without an ip on the nic.
The question is: can i hook all the boxes and the router to a hub, connect to the isp from one of the boxes and use the SAME nic to connect to the LAN??
don't call me cheap, it just poped into my mind _________________ I am Beta, don't expect correct behaviour from me.
Take part of the adopt an unaswered post initiative |
|
Back to top |
|
|
krusty_ar Guru
Joined: 03 Oct 2002 Posts: 560 Location: Rosario, Argentina
|
Posted: Wed Jan 29, 2003 3:42 pm Post subject: |
|
|
i think the cisco 677 can act as router, but mi isp disables this as well as the web interface before shiping and i don't have the right cable to access it trough the serial port _________________ I am Beta, don't expect correct behaviour from me.
Take part of the adopt an unaswered post initiative |
|
Back to top |
|
|
Xan n00b
Joined: 08 Jan 2003 Posts: 45 Location: Austin
|
Posted: Wed Jan 29, 2003 8:14 pm Post subject: |
|
|
I think so. It's possible to assign multiple IP addresses to a network interface, you just refer to it as eth0:1, eth0:2, etc. Configure eth0 to get on the Internet through your router, then assign eth0:1 an internal ip (eg 192.168.0.1). Set up iptables, dhcpd etc to use eth0 as the external interface and eth0:1 as the internal, and your internal machines should use 192.168.0.1 as their default router. I haven't tried it, but it should work. |
|
Back to top |
|
|
Xan n00b
Joined: 08 Jan 2003 Posts: 45 Location: Austin
|
Posted: Wed Jan 29, 2003 8:19 pm Post subject: |
|
|
One caveat, it sounds like your router may assign itself an IP in the internal range, and it would be important to avoid any conflict there. Running a traceroute to someplace should tell you the IP of your Cisco; make sure whatever subnet you assign your internal boxes does not encompass the IP of the router. It may be easiest just to pick something in the 10.0.0.0 range if your Cisco is 192.168.0.0, or vice versa. |
|
Back to top |
|
|
krusty_ar Guru
Joined: 03 Oct 2002 Posts: 560 Location: Rosario, Argentina
|
|
Back to top |
|
|
krusty_ar Guru
Joined: 03 Oct 2002 Posts: 560 Location: Rosario, Argentina
|
|
Back to top |
|
|
|