im using a lagg failover device
with a usb ethernet adaptor
the issue is the lagg0 device doesnt pick up the ethernet device in ifconfig
( post at the bottom explains the problem in detail )
it should have this line under lagg0 in ifconfig
but it doesnt, probably because its a usb to ethernet adaptor
so i have to manually run the following commands after login to get pf working
i have to use netif to restart lagg0 and then restart pf
if you just restart netif it clears the routes
after running the above commands ifconfig does list laggport: ue0
which is the ethernet connection and pf works
i also have the same issue with my alfa usb wifi card
and you have use netif to restart lagg0 and then restart pf
so looks like an issue with usb ethernet and wifi adaptors and lagg
i would like to run the commands above automatically
so i need to create a rc.d script to
1 - use netif to restart lagg0
2 - restart pf
looking at the pratcical rc.d scripting page
it mentions REQUIRE, for example
i would have though i need to restart netif and pf after they have loaded
so would i need to use some like the following
or would be pf be uppercase
took quite a while to figure out why pf wasnt working with lagg0
and my usb ethernet adapator
and my brain is still a bit fried
if anyone could point in the general direction of how to create a rc.d script
that does the job that would be great
pratcical rc.d scripting
docs.freebsd.org
laggo failover device post
with a usb ethernet adaptor
the issue is the lagg0 device doesnt pick up the ethernet device in ifconfig
( post at the bottom explains the problem in detail )
it should have this line under lagg0 in ifconfig
Code:
laggport: ue0 flags=5<MASTER,ACTIVE>
but it doesnt, probably because its a usb to ethernet adaptor
so i have to manually run the following commands after login to get pf working
Code:
doas service netif restart lagg0
doas service pf restart
i have to use netif to restart lagg0 and then restart pf
if you just restart netif it clears the routes
after running the above commands ifconfig does list laggport: ue0
which is the ethernet connection and pf works
i also have the same issue with my alfa usb wifi card
and you have use netif to restart lagg0 and then restart pf
so looks like an issue with usb ethernet and wifi adaptors and lagg
i would like to run the commands above automatically
so i need to create a rc.d script to
1 - use netif to restart lagg0
2 - restart pf
looking at the pratcical rc.d scripting page
it mentions REQUIRE, for example
Code:
# REQUIRE: NETWORKING
Keep in mind that putting a service name in theREQUIRE:
line does not guarantee that the service will actually be running by the time our script starts.
i would have though i need to restart netif and pf after they have loaded
so would i need to use some like the following
Code:
# REQUIRE: NETWORKING pf
or would be pf be uppercase
Code:
# REQUIRE: NETWORKING PF
took quite a while to figure out why pf wasnt working with lagg0
and my usb ethernet adapator
and my brain is still a bit fried
if anyone could point in the general direction of how to create a rc.d script
that does the job that would be great
pratcical rc.d scripting
Practical rc.d scripting in BSD
A guide to writing new rc.d scripts and understanding those already written
laggo failover device post
i have a lagg failover device set up on two machines
to automatically switch between wired and wireless when i unplug the ethernet cable
docs.freebsd.org
however my pf.conf no longer works
it worked fine with the int_if set to ethernet device
i cant seem to find any documentation about using lagg and pf in the handbook
docs.freebsd.org
and google isnt much use either
i have only changed 2 things
1 - int_if device in the pf.conf
int_if changed from...
to automatically switch between wired and wireless when i unplug the ethernet cable
Chapter 34. Advanced Networking
Advanced networking in FreeBSD: basics of gateways and routes, CARP, how to configure multiple VLANs on FreeBSD, etc
however my pf.conf no longer works
it worked fine with the int_if set to ethernet device
i cant seem to find any documentation about using lagg and pf in the handbook
Chapter 33. Firewalls
FreeBSD has three firewalls built into the base system: PF, IPFW, and IPFILTER. This chapter covers how to define packet filtering rules, the differences between the firewalls built into FreeBSD and how to use them
and google isnt much use either
i have only changed 2 things
1 - int_if device in the pf.conf
int_if changed from...
- NapoleonWils0n
- failover lagg lagg0 pf.conf
- Replies: 8
- Forum: Networking