Network configuration issue (gateway(s))
total noob to networking, but not entirely to unix (no expert either).
after all the reading i've done (Complete FreeBSD, Linux Network Admin, OpenBSD online manual, man pages, web how-tos), i still can't grok the routing i want for my first network.
here is a simple setup with extra computers removed for simplicity. i'm using static ips because dhcp didn'tseem necessary (fixed set of computers; am i wrong)?
i've attached a txt diagram of my landscape.
as may be apparent, i intend to use openbsdbox as a gateway/firewall/nat/yaddayadda
the box talks to the internet fine (i can ssh into it).
rl0 is up.
i haven't messed with the wifi part of this yet (laptop1).
at this point i just want desktop1 to talk to openbsdbox (in an attempt to keep my learning process simple; after that i guess i'll turn on packet forwarding so desktop1 can reach the internet). in my reading, i see information which conflicts (only in my mind i know).
1.WHICH of the ips listed above do i set to default gateway?
2. What is the minimum set of routes i add to get desktop1 to talk to openbsdbox?
i usually don't ask to be spoon fed answers, especially on this since i'm really trying to learn the guts of unix, but i've been beating my head against a wall for a week trying to learn networking so i can get this set up, and something's eluding me.
any help is GREATLY appreciated!
desktop1 laptop1 192.168.0.201 192.168.0.202 | | |_192.168.0.2_________| | | TRENDnet (wireless router) 192.168.10.1 | | +-----rl0 192.168.0.120-----+ (ip i assigned) | | | openbsdbox | | | +-----dc0 192.168.0.110------+ | | cradlepoint (mobile broadband to ethernet converter) 192.168.0.1 | | internet
Last edited by J65nko; 24th November 2009 at 11:45 PM. Reason: Added diagram inline using code and /code tags
Lots of birds, and one stone won't kill them all
Welcome! It's been awhile for me on this forum but I got the message and love helping with networking noobs interested in OBSD... so here goes.
Attached is the diagram you submitted with my changes. Let's review some changes and other points here-
desktop1 laptop1 192.168.0.201 192.168.0.202 | | |_192.168.0.2_________| | | TRENDnet (wireless router)- USE AS A BRIDGE ONLY, NOT AS A ROUTER. 192.168.0.1 | | +-----rl0 192.168.0.120-----+ (ip i assigned) | | | openbsdbox | | | +-----dc0 10.0.0.110------+ | | cradlepoint (mobile broadband to ethernet converter) 10.0.0.1 | | internet The default gateway of your desktops should be 192.168.0.120 The TRENDnet should bridge, not route, packets from desktop to obsdbox Obsdbox should nat between the two private networks (192.168.0.0/24 and 10.0.0.0/24) unless the cradlepoint will have routing intelligence back to the 192.168.0.0/24 network.
Last edited by J65nko; 25th November 2009 at 12:04 AM. Reason: Added diagram inline ;) Come on boys, where does this diagram attachment disease come from?
Ai-danno beat me in answering. I took the liberty to add the diagrams inline so it easier for everybody to follow
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
|Thread||Thread Starter||Forum||Replies||Last Post|
|WindowMaker 0.92.0p7 (OpenBSD 4.4/i386 Packages) configuration issue.||xixobrax||OpenBSD General||1||3rd May 2009 04:04 PM|
|Nvidia nForce MCP77 network adapter issue||padmanabh||FreeBSD Installation and Upgrading||5||17th January 2009 12:18 PM|
|antivirus gateway||milo974||OpenBSD Security||9||14th September 2008 04:02 AM|
|FreeBSD Gateway||tad1214||FreeBSD Ports and Packages||4||11th July 2008 05:31 AM|
|Dual WAN gateway.||LordZ||OpenBSD Security||2||2nd June 2008 09:00 AM|