If you are managing FreeBSD or any Linux servers , you might have used the tcpdump a number of times . It’s a very handy tool for Network engineers or System administrators for troubleshooting . Sometimes you need to run it over day/night , capture the file and then analyze it in Wireshark ....
I have cloned my FreeBSD 16GB SSD to a 28GB SSD . So everything works fine from the new SSD but I am unable to use the extra storage I had added . Another popular scenario of resizing the partition is adding extra storage to your virtual machines or SAN devices .In either case...
Once the USB disk is connected , you can run the geom command to list all the available disk. In my case ada0 is my internal ssd , da0 is a card reader and da1 is the external USB disk . If you want to see more details about the disks including its sub...
Prerequsites : Install OpenVPN client packages Now create openvpn folder in /usr/local/etc/ . I always create seperate folders for client and server . So I can use it if I need to run both server and client from a same device . Now you can copy a sample client config to this location ,...
If your hardware has multiple CPU’s you can set the cpu affinity to run certain processes on speicifc cores . cpuset is the command in FreeBSD for this . So I have a test server in AWS with two CPU cores . First we can verify the hardware by running the command : So...
pip is a package manager in Python which you need to install various modules for Python . Here , we see how to install Pip on a FreeBSD 12.1 server . Release : 12.1-RELEASE-p10 Python : Python 3.7.9 So the command is : Tu upgrade pip to the latest : So now the pip...
If you are playing with the file systems in FreeBSD , you might encounter this error: So ada0 is my drive here and I am getting the corrupt error after making some changes with my zfs file systems , this can be easily recovered by uisng the gpart recovery tool by using the command...
Sometimes, you may need to see the download speed on your FreeBSD server . The fetch command with /dev/null is an easy way to see this . The /dev/null is a null interface which is blackhole in unix based operating systems . It won’t save anything instead it redirects everything to null. So the...
You can enable the logging in pflog You can verify your pflogd service running : But this log file is binary and you won’t be able to tail it with the ‘clog’ utility in FreeBSD . To clog this file you need to use the tcpdump: You can thhen filter this with your host...
To add a static route via a specific interface: where re1 is my wan interface and destinationip is your remote IP . You can do an ‘ifconfig’ to see your network interfaces To delete the host: To add a default route to allow all traffic: where 192.168.1.1 is the default gateway To show all...