Page 1 of 1

VESTA new version IPTABLES enabled locked me OUT

Posted: Tue Oct 28, 2014 4:47 pm
by petron
Hi,

I have just updated the new VESTA CP and a new entry appeared in services: IPTABLES firewall. IT was stopped.

My server using VPN connection. My SSH configured on a different port than the default.

I can access everything through VPN including port 2083, SSH, ftp, etc.
I was logged in as usual, but unfortunately I clicked the start IPTABLES service but with the default ports enabled.

It locked me out of my VPS server. I cannot connect via VPN.

How can I access my server again?

Re: VESTA new version IPTABLES enabled locked me OUT

Posted: Tue Oct 28, 2014 5:36 pm
by petron
No problem, using emergecy console on VPS, problem solved. Adding the following rule to IPTABLES using bash.
If you have the same problem just run this command in bash. This is the default port for OPENVPN UPD 1194

Code: Select all

iptables -I INPUT -p udp -m udp --dport 1194 -j ACCEPT

Re: VESTA new version IPTABLES enabled locked me OUT

Posted: Wed Oct 29, 2014 6:42 pm
by imperio

Code: Select all

echo "PROTOCOL='TCP' PORT='1194'" >> /usr/local/vesta/data/firewall/ports.conf

Code: Select all

v-update-firewall

Re: VESTA new version IPTABLES enabled locked me OUT

Posted: Sat Nov 08, 2014 5:31 am
by petron
imperio wrote:

Code: Select all

echo "PROTOCOL='TCP' PORT='1194'" >> /usr/local/vesta/data/firewall/ports.conf

Code: Select all

v-update-firewall
Thank you!