Hey everyone, thank you for taking the time to read this question and for volunteering your time. These forums are amazing!
Anyway, here's the deal. I'm trying to set up a FreeBSD 10.3 router/firewall machine for my home. I've got one at the office, but the tricky part is a PPPoE connection at home. As for my FreeBSD knowledge/experience, if 1 = novice and 10 = grand master wizard, I'm a 3 or 4.
I think I've followed the instructions properly, but no luck. I'll post a handful of things here that I hope will help troubleshoot this issue. For the basics - I have a static IP address from my ISP, and my connection is handled via PPPoE. My fixed IP is 8.34.97.16 and the IP at my ISP that it should connect to is 8.34.97.1.
Here's my ppp.conf file:
Here's my rc.conf:
Here's an
And a
When I run the
So it seems like I'm getting close, but obviously I've got something wrong somewhere.
A gigantic THANK YOU for anyone who can help me sort this out!
Anyway, here's the deal. I'm trying to set up a FreeBSD 10.3 router/firewall machine for my home. I've got one at the office, but the tricky part is a PPPoE connection at home. As for my FreeBSD knowledge/experience, if 1 = novice and 10 = grand master wizard, I'm a 3 or 4.
I think I've followed the instructions properly, but no luck. I'll post a handful of things here that I hope will help troubleshoot this issue. For the basics - I have a static IP address from my ISP, and my connection is handled via PPPoE. My fixed IP is 8.34.97.16 and the IP at my ISP that it should connect to is 8.34.97.1.
Here's my ppp.conf file:
Code:
default:
set log Phase Chat LCP IPCP CCP tun command
# ident user-ppp VERSION
# set ifaddr 8.34.97.16/0 8.34.97.1/0 255.255.255.255
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
name_of_service_provider:
set device PPPoE:re0
set authname *********
set authkey *********
set dial
set login
add default HISADDR
nat enable yes
Here's my rc.conf:
Code:
hostname="r"
# external network
ifconfig_re0="inet 8.34.97.16 netmask 255.255.255.255"
defaultrouter="8.34.97.1"
# internal network
ifconfig_re1="inet 192.168.2.1 netmask 255.255.255.0"
gateway_enable="YES"
sshd_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
# DHCP configuration 07-15-2016 AJR
dhcpd_enable="YES"
#dhcpd_flags="-d"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcp_ifaces="re1"
# dhcp_withumask="022"
# pf firewall stuff
pf_enable="YES"
pflog_enable="YES"
pf_flags=""
pf_rules="/etc/pf.conf"
# PPPoE config
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="YES"
ppp_profile="WR"
Here's an
ifconfig -a
after running ppp -ddial
:
Code:
bge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE>
ether 00:1a:a0:1b:32:fd
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether 00:13:3b:0f:a3:49
inet 8.34.97.16 netmask 0xffffffff broadcast 8.34.97.16
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether 00:13:3b:0f:a3:4a
inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (10baseT/UTP <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33184
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
Opened by PID 938
And a
netstat -rn
tossed in for good measure:
Code:
Routing tables
Internet:
Destination Gateway Flags Netif Expire
8.34.97.16 link#2 UHS lo0
8.34.97.16/32 link#2 U re0
127.0.0.1 link#4 UH lo0
192.168.2.0/24 link#3 U re1
192.168.2.1 link#3 UHS lo0
Internet6:
Destination Gateway Flags Netif Expire
::/96 ::1 UGRS lo0
::1 link#4 UH lo0
::ffff:0.0.0.0/96 ::1 UGRS lo0
fe80::/10 ::1 UGRS lo0
fe80::%lo0/64 link#4 U lo0
fe80::1%lo0 link#4 UHS lo0
ff01::%lo0/32 ::1 U lo0
ff02::/16 ::1 UGRS lo0
ff02::%lo0/32 ::1 U lo0
When I run the
ppp -ddial
command, this is what shows up:
Code:
Working in ddial mode
Warning: Add! route failed: ff02::: errno: Value too large to be stored in data type
Using interface: tun0
So it seems like I'm getting close, but obviously I've got something wrong somewhere.
A gigantic THANK YOU for anyone who can help me sort this out!