I have a computer running FreeBSD that I want to use as a gateway between my LAN and the internet.
Here is a diagram:
Here is the output from FreeBSD:
I want openbsd to be able to connect to the internet through freebsd
I am reading through `The Book of PF' which is where I got that pf.conf from
I don't care about security right now (default deny etc) I just want openbsd to connect to the internet through freebsd
I shouldn't need to configure openbsd, since I want to be able to replace it with a regular switch or router or game console etc
Thanks for any help
Here is a diagram:
(internet)
| |
[ ISP ROUTER ]
[ 192.168.0.1 ]
| |
| |
[ ue0 192.168.0.106 ]
[ FreeBSD ]
[ ue1 10.0.0.0 ]
| |
| |
[ fxp0 10.0.0.1 ]
[ OpenBSD (irrelevant, could be a switch, router, xbox/ps4 etc) ]
Here is the output from FreeBSD:
% ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80009<RXCSUM,VLAN_MTU,LINKSTATE>
ether b8:27:eb:a9:5f:e8
inet 192.168.0.106 netmask 0xffffff00 broadcast 192.168.0.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
ue1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
ether 00:e0:4c:36:36:f0
inet 10.0.0.0 netmask 0xff000000 broadcast 10.255.255.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33160
groups: pflog
% cat pf.conf
# external interface, internet
ext_if = "ue0"
# internal interface, LAN
int_if = "ue1"
localnet = $int_if:network"
match out on $ext_if inet from $localnet nat-to ($ext_if)
pass from { self, $localnet }
% pfctl -nf pf.conf
pfctl -nf pf.conf
pf.conf:13: syntax error
no IP address found for ue1:network"
pf.conf:16: could not parse host specification
I want openbsd to be able to connect to the internet through freebsd
I am reading through `The Book of PF' which is where I got that pf.conf from
I don't care about security right now (default deny etc) I just want openbsd to connect to the internet through freebsd
I shouldn't need to configure openbsd, since I want to be able to replace it with a regular switch or router or game console etc
Thanks for any help