I have just moved my server over to a new machine. I did this as a test a few days ago and it worked great but now that I have done it for real I am experiencing the most peculiar issue.
I can connect to my server via the usual network services (SSH, IMAP etc) but while logged into the servers console I can't ping anything. Not the default gateway or anything on the internet. I know the network card name changed between the two machines (from bge0 to em0) and I have made the necessary changes in my /etc/rc.conf and /etc/pf.conf files (like I did during the test).
Can someone help me troubleshoot this please. I have exhausted everything I can think of and have looked through the logs but I am obviously overlooking something.
Any ideas? :e
My /etc/rc.conf:
My /etc/pf.conf:
The issues I am experiencing from this include extremely slow SSH logons and NTP is moaning as it can't connect to the internet and obviously emails cant be delivered.
Very confused!!
I can connect to my server via the usual network services (SSH, IMAP etc) but while logged into the servers console I can't ping anything. Not the default gateway or anything on the internet. I know the network card name changed between the two machines (from bge0 to em0) and I have made the necessary changes in my /etc/rc.conf and /etc/pf.conf files (like I did during the test).
Can someone help me troubleshoot this please. I have exhausted everything I can think of and have looked through the logs but I am obviously overlooking something.
Any ideas? :e
My /etc/rc.conf:
Code:
ifconfig_em0="inet 192.168.0.200 netmask 255.255.255.0"
My /etc/pf.conf:
Code:
tcp_services = "{ 22, 25, 80, 161, 162, 443, 587, 993, 3551 }"
udp_services = "{ 161, 162 }"
#table <bruteforce> persist
#block quick from <bruteforce>
#pass inet proto tcp fom any to bge0 port 22 keep state (maxsrc-conn 100, max-src-conn-rate 15/5, \
#overload <bruteforce> flush global)
set skip on lo0
set loginterface em0
pass out quick on em0
block in all
pass in log on em0 proto tcp from any to em0 port $tcp_services
pass in proto icmp from 192.168.0.0/24 to em0
pass in log on em0 proto udp from any to em0 port 6277
pass in log on em0 proto udp from any to em0 port 3551
pass in log on em0 proto udp from 192.168.0.1 to em0 port $udp_services
The issues I am experiencing from this include extremely slow SSH logons and NTP is moaning as it can't connect to the internet and obviously emails cant be delivered.
Very confused!!