Categories
FreeBSD How to

How to configure a automatically native IPv6 connection on FreeBSD

First you need to install a DHCP client

Setup config for dhcp6c

Add the following

Add the following to /etc/rc.conf

Run the IPv6 startup script.

Now startup the client

To test the connection you should be able to ping XS4ALL.

You also might want to check out these posts for some more information:
How to use a PPPoE or PPPoA connection of XS4ALL on FreeBSD

How to configure IPv6 DHCP client for XS4ALL on FreeBSD

How to configure a IPv6 gateway for XS4ALL on FreeBSD

Categories
FreeBSD How to

How to configure a manual native IPv6 connection on FreeBSD

Configuring a native IPv6 connection on FreeBSD with an already established connection on a router in the network is quite simple.

Add the following to /etc/rc.conf

Run the IPv6 startup script.

To test the connection you should be able to ping XS4ALL.

You also might want to check out these posts for some more information:
How to use a PPPoE or PPPoA connection of XS4ALL on FreeBSD

How to configure IPv6 DHCP client for XS4ALL on FreeBSD

How to configure a IPv6 gateway for XS4ALL on FreeBSD

Categories
How to

How to install an Urban Terror server with bots on FreeBSD

This will install an Urban Terror server running under the user urban with 4 bots enabled on the server.

First of all we install the binaries, I prefer installing them from the ports, in case you don’t have root access you might want to manually download from https://www.urbanterror.info/. The configuration is quite the same so you should be able to install on your own.

For the port install use:

Lets get some coffee, cause this installation might take a while… The installation requires downloading UrbanTerror411.zip from one of the mirrors which is around 1GB in size 🙂

After installing you need to add a user to run the server.

I don’t set a password for this account simply because I mostly su into it 😉 So…

First create the required directories

In this directory you need to add the configuration files: server.cfg / mapcycle.txt / bots.cfg

server.cfg

In case you want to change this configuration, check out: http://www.urbanterror.info/docs/180-/

mapcycle.txt

I limited the map list to the maps that work fine with bots.

bots.cfg

You can start the server by manual but I would advice you do run the server with this script in tmux or in GNU Screen.

start.sh

Run it by doing

In case you want this server to be reachable for the public, don’t forget to set dedicated to 2.

Good luck! If you have any questions, let me know!

Useful info:
Urban Terror Server Setup PDF

Categories
FreeBSD How to

How to configure a IPv6 gateway for XS4ALL on FreeBSD

You might first need these two manuals.

How to use a PPPoE or PPPoA connection of XS4ALL on FreeBSD

How to configure IPv6 DHCP client for XS4ALL on FreeBSD

Configuring your server as a router is quite simple.

First edit /etc/rc.conf and add the following

This configures IPv6 for your interface and tells it to function as a gateway.

Now setup the config for rtadvd so it will give out the right IP range. Edit /etc/rtadvd.conf

Now fire up a client connected to the LAN side on em0 and visit the following page to check if you are using IPv6:

https://www.xs4all.nl/klant/veiligheid/mijnip

Another useful page with information how to configure IPv6 on your server is in the FreeBSD handbook.

Categories
FreeBSD How to

How to configure IPv6 DHCP client for XS4ALL on FreeBSD

For this installation you might be required to first establish the connection, check: How to use a PPPoE or PPPoA connection of XS4ALL on FreeBSD.

First you need to install a DHCP client

Setup config for dhcp6c

Add the following

Add the following to /etc/rc.conf

Now startup the client

As last set the default route

To test the connection you should be able to ping XS4ALL.

Categories
FreeBSD How to

How to determine the partition sizes of your disk for FreeBSD usage

Partition sizes

First of all, what I mostly do. I press A for the default partitions and then raise them. Below are some default sizes who are advised.

partitionmountpointsizeSoftUpdatesmy size
a/1GBN1GB
bSWAP2-3x RAM size2x RAM size
d/var512MB to 4096MBY5GB
e/tmp1GBY1GB
f/usrRest of disk (at least 8GB)YRest

For the root partition it might be smart to keep track of how large the kernel is.

This size was a default of 512MB but this is too small to install 2 kernels (kernel and kernel.old).

Another thing is the /tmp partition, this defaults to 512MB, raise it to 1GB (for tar / gzip etc)