Hello misc@
Hoping someone can help me please. I have a bit of a chicken and egg
situation with regard to routing real IPs through a PPPoE connection in
that I know some of the terms but my understanding is limited on others.
I've read around pppoe on freebsd and openbsd and openbsd seems to me to
be the one to go for as it looks simpler and additionally has a
reputation for robustness.
The setup that I want goes like this
internet
|
|
draytek vigor 130 in pppoe bridge mode
|
|rl0 connected to modem
openbsd 6.0 with two rl interfaces, running pppoe
|
|rl1 connected to unmanaged switch/LAN
The LAN machines have their own firewalls and will be manually set with
real IPs in my /29. I don't need NAT on this machine, though maybe pf is
needed for anti-spoof. I'm confident I can set up the actual pppoe
connection through use of the online faq.
What I'm unsure about is this:
1. do I need to bridge the rl0 and rl1 interfaces? The way a lot of
fixed IP on *dsl is delivered in the UK is that the connection gets
dynamically the same IP each time, because it's tied to the login
credentials/radius profile. In my redacted-ip example case I get
82.xx.yy.102 if just one machine with a pppoe client connects to the
internet. I have 82.xx.yy.96/29 in CIDR.
2. how do I make rl1 accept incoming and outgoing traffic from the rest
of my /29? Is it as simple as putting the following in hostname.rl0:
inet 82.xx.yy.102 255.255.255.248
and then set the sysctl net.inet.ip.forwarding=1 ?
many thanks,
--
J.