[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: network configuration w/PPPoE on OpenBSD 2.9 current
Rick Pettit wrote:
>
> My DSL connection with Ameritech requires PPPoE based authentictation, so
> to get up and running in a jiffy I purchased a cheapy DSL router (SMC
> Barricade), plugged it into the DSL modem, had it configured for PPPoE,
> and all was good (behind the Barricade was a NAT'd subnet with a single
> DMZ host, worked good for the time being).
>
> Now I have a new problem. Ameritech have me 5 static IP addresses and I
> am only making use of 1 of them (for the DSL router). I now have a
> roomate who would like to put a webserver up on one of the free IP's, but
> I cannot let him use one without reconfiguring the network layout.
>
> What I would like to have is this:
>
> Internet
> |
> | PSTN line
> |
> DSL Modem
> |
> | Ethernet
> |
> 8 port 10/100 switch
> |
> |
> ---------------------------------------------
> | | | |
> | | | |
> OpenBSD OpenBSD ... OpenBSD |
> Box doing Box doing Box doing |
> PPPoE PPPoE PPPoE |
> doing |
> bandwidth DSL Router
> throttling (bridge) + wireless
> | AP (+NAT)
> | | | | |
> 4 port 10/100 hub | | | |
> |
> | Misc Boxes
> Annoying Roomate below
>
> Questions:
>
> 1) Am I fsck'ing confused (i.e. can this work?)
I'm pretty sure that it will, although I've never tried it myself.
> 2) does the DSL modem plug into uplink on the switch or reg. ether port?
Mine plugs into a regular port. Consult your owner's manual.
> 3) does the bridge (throttle box) plug into normal port or uplink on hub?
It will plug into a regular port on the 8 port switch, and the uplink
port of the 4 port hub.
> 4) must I share my PPPoE username/passwd with every box on the "front
> lines"?
Most likely. If you get 5 addresses to that username, you'll need it
on each box.
> 5) does this procedure look O.K. for PPPoE on OpenBSD 2.9 current:
>
> ppp.conf looks like:
>
> default:
> set log Phase Chat LCP IPCP CCP tun command
> # set device /dev/cua01
> # set speed 115200
> # set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK
> ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
That's what I've got.
> ameritech:
> set device "!/usr/sbin/pppoe -i dc0"
> set mtu 1492
> set mru 1492
I use 1488. I believe that's what you need after overhead, but I
didn't include the ref for why I set it to that.
> set speed sync
> disable acfcomp protocomp
> deny acfcomp
> authname ********
> authkey ********
I also have:
set ifaddr 0.0.0.0/0 0.0.0.0/0
add default HISADDR
enable loopback
enable lqr
The first two lines allow the IP address to be set from the far side,
the third is default but I set it anyway (just in case), and the fourth
helps detect loss of link for restart.
>
> My procedure is to:
>
> 1) bring up interface to do PPPoE on (ifconfig dc0 up full-duplex)
In /etc/hostname.dc0, have one line that says "up"
> 2) # ppp pppoe
That's "ppp ameritech" for the config you gave.
> Working in ...
> Using interface: tun0
> ppp ON somehost> dial
> ...
>
> By the way, I have not gotten this to work yet (haven't tried with ""'s
> around the device line in ppp.conf above). I will try to get pppoe to
> work when I get home tonight.
Mine works fine. There's something else I did, but I forget what it
is. I think I needed to add the default route, but that apparently
isn't necessary anymore. Also, you'll need to get ipf and ipnat working
before you can route.
HTH,
/|/|ike
P.S. Myself, I'd plug one OpenBSD box directly into the modem and
bridge and route (and use multiple pppoe's as needed) from there, but
that's me.
> Thanks for any help.
>
> Rick