1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-24 02:46:36 +01:00
fastnetmon-rewritten/docs/FreeBSD_INSTALL.md

73 lines
1.6 KiB
Markdown
Raw Normal View History

2015-04-24 12:55:42 +02:00
FreeBSD 9, 10, 11 and Dragonfly BSD 4.0
2015-02-10 14:38:00 +01:00
Install dependencies:
```bash
pkg install cmake git ncurses boost-all log4cpp
```
2015-02-10 14:40:39 +01:00
Update linker paths:
2015-02-10 14:38:00 +01:00
```
/etc/rc.d/ldconfig restart
```
```bash
mkdir /usr/local/src
cd /usr/local/src
git clone https://github.com/FastVPSEestiOu/fastnetmon.git -b v1.1.2
2015-03-22 11:43:59 +01:00
cd fastnetmon/src
2015-02-10 14:38:00 +01:00
mkdir build
cd build
cmake ..
make
```
Or you can try native FreeBSD port (will be added to port tree soon):
```bash
pkg install cmake git ncurses boost-all log4cpp
/etc/rc.d/ldconfig restart
mkdir /usr/local/src
cd /usr/local/src
git clone https://github.com/FastVPSEestiOu/fastnetmon.git
cd fastnetmon/src/FreeBSD_port/
make makesum
make install
```
2015-06-06 22:18:55 +02:00
And please switch capture interface to promisc mode.
Add into /etc/rc.conf following line (for applying this option at boot time):
```bash
ifconfig_ix1="up promisc"
```
And switch it with ifconfig for already running system:
```bash
ifconfig ix1 promisc
```
2015-06-25 18:24:31 +02:00
Please put your networks in CIDR format here: /usr/local/etc/networks_list.
2015-03-13 16:35:39 +01:00
For netmap support you may need compile kernel manually with this [manual](BUILDING_FREEBSD_KERNEL_FOR_NETMAP.md).
2015-02-10 14:38:00 +01:00
2015-06-25 16:30:59 +02:00
On 32 bit FreeBSD you could hit this issue:
```bash
fastnetmon.cpp:(.text+0xc979): undefined reference to `__sync_fetch_and_add_8'
```
It could be fixed by this patch.
Please add this lines before line "post-patch" line:
```bash
.include <bsd.port.pre.mk>
# Port requires 64 bit atomics
#.if ${ARCH} == i386 && empty(MACHINE_CPU:Mi586)
CFLAGS+= -march=i586
#.endif
```
And replace last string ```.include <bsd.port.mk>``` by ```.include
<bsd.port.post.mk>```.