Koozali.org: home of the SME Server

Open port 3306 for single external IP

Ewald van Gemert

Open port 3306 for single external IP
« on: September 23, 2003, 03:04:27 PM »
In the masq file there is this rule:

 /sbin/ipchains --append input -p tcp -y -s 0/0 -d $OUTERNET 3306 -j denylog

What do i need to change/append to make the MySQL db accessable from 1 external IP adrress (eg. 213.213.213.213 )

Curly

Re: Open port 3306 for single external IP
« Reply #1 on: September 23, 2003, 08:01:05 PM »
I'd say that it should be:

/sbin/ipchains --append input -p tcp -y -s 213.213.213.213/255.255.255.255 -d $OUTERNET 3306 -j ACCEPT