Append the provider configuration to /etc/ppp/ppp.conf:
provider:
set device PPPoE:<interface>
set authname <PPPoE username>
set authkey <PPPoE password>
set dial
set login
add default HISADDR
enable lqr echo
enable dns
nat enable yes
set redial 2
Replace <interface> with your network interface towards the PPPoE server. Start the PPPoE client, as root: /etc/rc.d/ppp start
Enable PPPoE client at startup, append to /etc/rc.conf:
ifconfig_<interface>="up"
ppp_enable="YES"
ppp_profile="provider"
ppp_mode="ddial"
Start the PPPoE client with /etc/rc.d/ppp start
as root. The PPPoE interface is usually tun0.
Posted by admin at 3:28 am on January 18th, 2010.
Categories: FreeBSD, Internet. Tags: dsl, FreeBSD, pppoe.
After you create a Regular Tunnel at Hurricane Electric‘s tunnelbroker.net you will receive the following informations:
Server IPv4 Address
Server IPv6 Address
Client IPv4 Address
Client IPv6 Address
Routed /64
Solaris and OpenSolaris IPv6 tunnel setup
Create /etc/hostname6.ip.tun0
file:
tsrc Client_IPv4_Address tdst Server_IPv4_Address up
addif Client_IPv6_Address Server_IPv6_Address up
Add the permanent IPv6 default gateway:
route -p add -inet6 default Server_IPv6_Address
(Tested on Solaris 10 5/09 and 10/09, OpenSolaris 2009.06 and 2010.02 preview snv_127)
Linux (RHEL / Fedora / CentOS) IPv6 tunnel setup
Create /etc/sysconfig/network-scripts/ifcfg-sit1
file:
DEVICE=sit1
BOOTPROTO=none
ONBOOT=yes
IPV6INIT=yes
IPV6TUNNELIPV4=Server_IPv4_Address
IPV6TUNNELIPV4LOCAL=Client_IPv4_Address
IPV6ADDR=Client_IPv6_Address/64
Add the following to /etc/sysconfig/network
file:
NETWORKING_IPV6=yes
IPV6_DEFAULTDEV=sit1
(Tested with Fedora 11 and 12, CentOS 5.3 and 5.4)
FreeBSD IPv6 tunnel setup
Add the following lines to /etc/rc.conf
file:
gif_interfaces="gif0"
gifconfig_gif0="Client_IPv4_Address Server_IPv4_Address"
ipv6_enable="YES"
ipv6_network_interfaces="lo0 gif0"
ipv6_ifconfig_gif0="Client_IPv6_Address prefixlen 128"
ipv6_defaultrouter="Server_IPv6_Address"
(Tested with FreeBSD 6.4)
Posted by admin at 8:36 pm on December 1st, 2009.
Categories: FreeBSD, IPv6, Linux, Solaris. Tags: FreeBSD, IPv6, ipv6-in-ipv4, Linux, opensolaris, Solaris, tunnel.
I signed up with rsync.net for an off-site filesystem. Opted for geo-redundant version (automated nightly replication to other site) located in Zurich, Switzerland. Very fast speed from Europe and Qatar, good speed with US hosts. Very easy to use from Mac OS X, FreeBSD, Linux and Windows (rsync, ftp, scp, sftp, ssh, WebDAV). Direct integration in Finder, just use “Connect to Server” and enter the hostname address with https. On Linux and FreeBSD 6.x sshfs works like a charm. Easy to install on FreeBSD using ports, just cd /usr/ports/sysutils/fusefs-sshfs and run make install clean.
Posted by admin at 11:11 am on June 16th, 2007.
Categories: Apple, FreeBSD, Internet, Linux.
sysctl kern.geom.debugflags=16
gmirror label -v -b round-robin gm0 /dev/ad0
echo geom_mirror_load="YES" >> /boot/loader.conf
sed -i .orig 's/ad0/mirror/gm0/' /etc/fstab
reboot
gmirror insert gm0 /dev/ad2
Replace ad0 with your FreeBSD bootdisk, ad2 with the second (same or larger capacity) disc.
Posted by admin at 9:13 pm on March 7th, 2007.
Categories: FreeBSD.
Add to rc.conf:
cloned_interfaces=”bridge0″
ifconfig_bridge0=”addm rl0 addm rl1″
Make sure you have if_bridge loaded as module or set up as ‘device if_bridge’ in your kernel configuration file.
Posted by admin at 7:34 am on October 28th, 2006.
Categories: FreeBSD.
Configure your switch to trunk (802.1q) desired VLANs on port connected to rl0 on FreeBSD box.
/etc/rc.conf:
ifconfig_rl0=”up”
cloned_interfaces=”vlan5 vlan6″
ifconfig_vlan5=”inet 192.168.5.254 netmask 255.255.255.0 vlan 5 vlandev rl0″
ifconfig_vlan6=”inet 192.168.6.254 netmask 255.255.255.0 vlan 6 vlandev rl0″
vlan5 and vlan6 interfaces will show up:
vlan5: flags=8843 mtu 1500
inet 192.168.5.254 netmask 0xffffff00 broadcast 192.168.5.255
ether 00:11:XX:XX:XX:XX
media: Ethernet autoselect (100baseTX )
status: active
vlan: 5 parent interface: rl0
vlan6: flags=8843 mtu 1500
inet 192.168.6.254 netmask 0xffffff00 broadcast 192.168.6.255
ether 00:11:XX:XX:XX:XX
media: Ethernet autoselect (100baseTX )
status: active
vlan: 6 parent interface: rl0
Posted by admin at 10:07 am on September 28th, 2006.
Categories: FreeBSD.
It seems that PowerDNS‘s pdns_recursor crashes on FreeBSD under load.
I’ve replaced it by a bind recursor. Excerpt from named.conf:
options {
directory "/etc/namedb";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
listen-on port XXXX { 127.0.0.1; };
};
zone "." {
type hint;
file "named.root";
};
Posted by admin at 5:23 pm on November 12th, 2005.
Categories: DNS, FreeBSD, Work.
I have installed FreeBSD 6.0 on some old computer, seems to work very fast! I have rebuild world and kernel.
dmesg:
Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 6.0-RELEASE #0: Sun Nov 6 00:13:58 EET 2005
[email protected]:/usr/obj/usr/src/sys/XXXX
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium II/Pentium II Xeon/Celeron (350.80-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x652 Stepping = 2
Features=0x183f9ff
real memory = 201261056 (191 MB)
avail memory = 191619072 (182 MB)
ACPI disabled by blacklist. Contact your BIOS vendor.
npx0: [FAST]
npx0:
Posted by admin at 5:31 pm on November 9th, 2005.
Categories: FreeBSD.
It seems that pdns_recursor from 2.9.19 dies under light load on FreeBSD.
Posted by admin at 2:55 pm on November 9th, 2005.
Categories: DNS, FreeBSD.
New production DNS server is up since Saturday night.
It runs PowerDNS with a MySQL 4.1 backend on FreeBSD 5.4. Complete with web (SSL) administration and statistics.
So far:
Uptime: 18 hours Queries/second, 1, 5, 10 minute averages: 6.4, 5.12, 5.15. Max queries/second: 40.1
Cache hitrate, 1, 5, 10 minute averages: 24%, 22%, 20%
Backend query cache hitrate, 1, 5, 10 minute averages: 63%, 62%, 62%
Backend query load, 1, 5, 10 minute averages: 10, 8.2, 8.59. Max queries/second: 26.7
Total queries: 313999. Question/answer latency: 0.678ms
Posted by admin at 11:44 am on October 24th, 2005.
Categories: DNS, FreeBSD, Linux, Work.