I have a server with 1 NIC em0 {192.168.1.8}
This server is only connected to our LAN
This server is currently running mysql on port 3306
This server is running FreeBSD 6.0 Release and can not be updated or taken down.
We want to move mysql to a new server running at 192.168.1.10 port 3306
Is there a way to make it so if you still try to access mysql on the old server it will redirect requests to the new server? We are worried about some old scripts that have been forgotten about that may still try to use the old IP and would like to avoid them breaking when we move mysql.
I have tried with PF but have not had much luck. Here is my current pf.conf
sql = "192.168.1.8"
int_if = "em0"
sqlp = "3306"
rdr pass log on $int_if proto { tcp, udp } from any to any port $sqlp -> $sqlIn the log I get this:
# tcpdump -n -ttt -i pflog0
9. 622870 IP 192.168.1.153.58750 > 192.168.1.8.3306: tcp 40 [bad hdr length 0 - too short, < 20]
Any help here would be awesome
This server is only connected to our LAN
This server is currently running mysql on port 3306
This server is running FreeBSD 6.0 Release and can not be updated or taken down.
We want to move mysql to a new server running at 192.168.1.10 port 3306
Is there a way to make it so if you still try to access mysql on the old server it will redirect requests to the new server? We are worried about some old scripts that have been forgotten about that may still try to use the old IP and would like to avoid them breaking when we move mysql.
I have tried with PF but have not had much luck. Here is my current pf.conf
sql = "192.168.1.8"
int_if = "em0"
sqlp = "3306"
rdr pass log on $int_if proto { tcp, udp } from any to any port $sqlp -> $sql
# tcpdump -n -ttt -i pflog0
9. 622870 IP 192.168.1.153.58750 > 192.168.1.8.3306: tcp 40 [bad hdr length 0 - too short, < 20]
Any help here would be awesome
