I recently reinstalled FreeBSD to latest version with same configuration files as previous install (version 9). The FreeBSD box is used as a router / NAT gateway to the Internet. After a fresh reboot the system functions well, however, after a while it gets unstable, requiring several refreshes in the webbrowser to display a website. I have been trying to fix these problem the past few days (tweaking sysctl networking options, deactivating firewall etc.) but have not been able to come up with a solution. I am out of ideas where to look since this exact same configuration worked fine on the previous version of FreeBSD.
ipnat.rules:
Relevant part from rc.conf:
Custom kernel options:
ipnat.rules:
Code:
map em0 10.23.0.0/24 -> 213.125.22.131
#map em1 10.23.0.0/24 -> 213.125.22.130
#map em0 192.168.5.0/24 -> 213.125.22.131
# Exchange
rdr em0 0.0.0.0/0 port 443 -> 10.23.0.1 port 443
rdr em0 0.0.0.0/0 port 143 -> 10.23.0.1 port 143
rdr em0 0.0.0.0/0 port 585 -> 10.23.0.1 port 585
rdr em0 0.0.0.0/0 port 993 -> 10.23.0.1 port 993
# Sharepoint
rdr em0 0.0.0.0/0 port 987 -> 10.23.0.1 port 987
rdr em0 0.0.0.0/0 port 8080 -> 10.23.0.1 port 987
# REMS Epsilon
#rdr em0 0.0.0.0/0 port 1443 -> 10.23.0.3 port 443
# L2TP
#rdr em0 0.0.0.0/0 port pptp -> 10.23.0.1 port pptp
#rdr em0 0.0.0.0/0 port l2tp -> 10.23.0.1 port l2tp
#rdr em0 0.0.0.0/0 port 0 -> 10.23.0.1 port 0 gre
# FTP
#map em0 10.23.0.0/24 -> 0/32 proxy port 21 ftp/tcp
#map em0 0.0.0.0/0 -> 0/32 proxy port 21 ftp/tcp
Code:
gateway_enable="yes"
ipnat_enable="yes"
ipnat_rules="/etc/ipnat.rules"
Code:
options IPSEC
options IPSEC_NAT_T
device crypto
options IPSEC_FILTERTUNNEL
device enc
options LIBALIAS
options IPFILTER
options IPDIVERT