Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
One nic transparent proxy
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
krusty_ar
Guru
Guru


Joined: 03 Oct 2002
Posts: 560
Location: Rosario, Argentina

PostPosted: Wed Jan 29, 2003 3:00 pm    Post subject: One nic transparent proxy Reply with quote

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
View user's profile Send private message
krusty_ar
Guru
Guru


Joined: 03 Oct 2002
Posts: 560
Location: Rosario, Argentina

PostPosted: Wed Jan 29, 2003 3:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Xan
n00b
n00b


Joined: 08 Jan 2003
Posts: 45
Location: Austin

PostPosted: Wed Jan 29, 2003 8:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Xan
n00b
n00b


Joined: 08 Jan 2003
Posts: 45
Location: Austin

PostPosted: Wed Jan 29, 2003 8:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
krusty_ar
Guru
Guru


Joined: 03 Oct 2002
Posts: 560
Location: Rosario, Argentina

PostPosted: Thu Jan 30, 2003 12:07 pm    Post subject: Reply with quote

tx Xan, just one q: i've never done this either so can you point to some docs?
_________________
I am Beta, don't expect correct behaviour from me.
Take part of the adopt an unaswered post initiative
Back to top
View user's profile Send private message
krusty_ar
Guru
Guru


Joined: 03 Oct 2002
Posts: 560
Location: Rosario, Argentina

PostPosted: Thu Jan 30, 2003 12:42 pm    Post subject: Reply with quote

ok, i did some searching (like i should have done before posting this) and found that it's really simple to do this

here's a post that shows two ways of doing it

Multiple ip on one nic
_________________
I am Beta, don't expect correct behaviour from me.
Take part of the adopt an unaswered post initiative
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum