Hi guys, lately I entered the BSD world, so I thought I'd retrieve a small mini-itx board and make a router/fw/dns etc. etc.
to learn a little bit about networks, BSD and to detach myself, as far as possible, from proprietary solutions.
I successfully managed to pull up the routing part, firewall with pf and dns/dhcp with dnsmasq.
I still have a lot to configure, but it works.
I wanted to take the next step, put the modem in bridge-mode ( Draytek Vigor 130 ) and configure PPPoE on the router.
Unfortunately, however, for lack of experience, and lack of knowledge, I found myself immediately bogged down.
Both on a practical and theoretical level.
Now I set up the Draytek ( Internet Access -> MPoA / Dynamic or Static IP -> Bridge-mode , I didn't configure anything else ).
At this point I connect the modem to the WAN port ( configured as such ) of the router, and configure ppp.conf.
Now I have this situation in the various conf files, could you show me the right way? Show me where I'm wrong (both at a practical and theoretical level?).
rc.conf
ppp.conf
to learn a little bit about networks, BSD and to detach myself, as far as possible, from proprietary solutions.
I successfully managed to pull up the routing part, firewall with pf and dns/dhcp with dnsmasq.
I still have a lot to configure, but it works.
I wanted to take the next step, put the modem in bridge-mode ( Draytek Vigor 130 ) and configure PPPoE on the router.
Unfortunately, however, for lack of experience, and lack of knowledge, I found myself immediately bogged down.
Both on a practical and theoretical level.
Now I set up the Draytek ( Internet Access -> MPoA / Dynamic or Static IP -> Bridge-mode , I didn't configure anything else ).
At this point I connect the modem to the WAN port ( configured as such ) of the router, and configure ppp.conf.
Now I have this situation in the various conf files, could you show me the right way? Show me where I'm wrong (both at a practical and theoretical level?).
rc.conf
Code:
### NET ###
cloned_interfaces="vlan1036"
ifconfig_vlan1036="inet 192.168.0.1 netmask 255.255.255.0 vlan 1036 vlandev re0"
ifconfig_re0=up
#defaultrouter="192.168.0.1" # ISP Gateway IP
ifconfig_re0="inet 192.168.0.2 netmask 255.255.255.0" # IP statico WAN
ifconfig_re1="inet 192.168.1.1 netmask 255.255.255.0" # IP statico LAN
### DNSMASQ ###
dnsmasq_enable="YES"
dnsmasq_conf="/etc/dnsmasq.conf"
# # # FIREWALL & NAT # # #
gateway_enable="YES"
pf_enable="YES"
pf_rules="/etc/firewall"
pf_flags=""
# # # PPP # # #
ppp_enable="YES"
ppp_nat="YES"
ppp_profile="vodafone"
ppp.conf
Code:
default:
set log Phase Chat tun Command Connect Filter Error Alert
nat enable no
vodafone:
rename vodafone
set device PPPoE:re0
set ifaddr 0 0 255.255.255.255
set server /var/run/ppp/vodafone "" 0177
set authname vodafonedsl
set authkey vodafonedsl
set mru 1492
set mtu 1492
set timeout 0
set echoperiod 15
set lqrperiod 15
disable ipv6cp
enable mssfixup dns echo lqr
set dial
set login
set redial 0 0
add! default HISADDR