Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
WAN and two LAN eth's
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
freshy98
Apprentice
Apprentice


Joined: 11 Jul 2002
Posts: 274
Location: The Netherlands

PostPosted: Thu Feb 01, 2007 1:04 pm    Post subject: WAN and two LAN eth's Reply with quote

I want to eliminate a switch in my home network, so want to use a eth2 for my Access Point (AP).

The situation would be as follows:

Eth0 = WAN
Eth1 = LAN
Eth2 = WiFi

The question is, how do I set it up?
I have searched here and with google on a how to, but all I see is why I should switch to a Apple MAC or where to buy a switch...

I think I just need the iptables config lines to enable the WAN to send to both LAN and WiFi.

If someone has a link to a How To, I would love to read it.
_________________
Mac Pro single quad 2.8GHz, 6GB RAM, 8800GT. MacBook. Plus way too many SUN/Cobatl/SGI and a lonely Alpha.
Back to top
View user's profile Send private message
ShweetuH
n00b
n00b


Joined: 10 Aug 2005
Posts: 14

PostPosted: Thu Feb 01, 2007 9:36 pm    Post subject: Reply with quote

greetings

i've done a simliar project before. just google the gentoo home router guide and change the eth's around to suit your needs
Back to top
View user's profile Send private message
freshy98
Apprentice
Apprentice


Joined: 11 Jul 2002
Posts: 274
Location: The Netherlands

PostPosted: Fri Feb 02, 2007 1:23 am    Post subject: Reply with quote

ShweetuH wrote:
greetings

i've done a simliar project before. just google the gentoo home router guide and change the eth's around to suit your needs


Ok, I have used that guide to build my current router/firewall. Didn't know, or forget since it's been a while, that it mentions multiple NIC's used as a switch.
I will check it out again.

Thanks!
_________________
Mac Pro single quad 2.8GHz, 6GB RAM, 8800GT. MacBook. Plus way too many SUN/Cobatl/SGI and a lonely Alpha.
Back to top
View user's profile Send private message
flybynite
l33t
l33t


Joined: 06 Dec 2002
Posts: 620

PostPosted: Fri Feb 02, 2007 1:52 am    Post subject: Reply with quote

Your right, you do just need iptables, but IPCop might also help you understand and configure your multiple NIC system.

http://www.ipcop.org/1.4.0/en/install/html/decide-configuration.html

Eth0 = WAN = Red Network
Eth1 = LAN = Green Network
Eth2 = WiFi = Blue Network
Back to top
View user's profile Send private message
freshy98
Apprentice
Apprentice


Joined: 11 Jul 2002
Posts: 274
Location: The Netherlands

PostPosted: Fri Feb 02, 2007 9:59 am    Post subject: Reply with quote

flybynite wrote:
Your right, you do just need iptables, but IPCop might also help you understand and configure your multiple NIC system.

http://www.ipcop.org/1.4.0/en/install/html/decide-configuration.html

Eth0 = WAN = Red Network
Eth1 = LAN = Green Network
Eth2 = WiFi = Blue Network


Maybe it's too early here, but it wasn't too clear to me.
Think I need to read it through when I am more awake some day.

Thank though.
_________________
Mac Pro single quad 2.8GHz, 6GB RAM, 8800GT. MacBook. Plus way too many SUN/Cobatl/SGI and a lonely Alpha.
Back to top
View user's profile Send private message
freshy98
Apprentice
Apprentice


Joined: 11 Jul 2002
Posts: 274
Location: The Netherlands

PostPosted: Fri Feb 02, 2007 10:10 am    Post subject: Reply with quote

The Gentoo Home Router guide shows what I need.
Plus after reading it a bit more, I know how to set up things properly now.

Just need to keep in mind to use cross-over cables :-)
_________________
Mac Pro single quad 2.8GHz, 6GB RAM, 8800GT. MacBook. Plus way too many SUN/Cobatl/SGI and a lonely Alpha.
Back to top
View user's profile Send private message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Fri Feb 02, 2007 3:32 pm    Post subject: Reply with quote

A switch is a multiport bridge.... so you could consider bridging your two LAN ifaces...

Just a thought.
_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
freshy98
Apprentice
Apprentice


Joined: 11 Jul 2002
Posts: 274
Location: The Netherlands

PostPosted: Fri Feb 02, 2007 4:29 pm    Post subject: Reply with quote

I have thought about bridging them.
But I think with just iptables I can make it work easily so I can understand what my machine is doing.
It's only for home, so it has to be simple.
_________________
Mac Pro single quad 2.8GHz, 6GB RAM, 8800GT. MacBook. Plus way too many SUN/Cobatl/SGI and a lonely Alpha.
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