Page 1 of 1

Unblock IP restriction on port 8083 through SSH

Posted: Thu Dec 01, 2016 1:49 am
by shanjie
How can I do that through SSH?

Re: Unblock IP restriction on port 8083 through SSH

Posted: Tue Mar 07, 2017 11:17 am
by skurudo
I think - /usr/local/vesta/bin/v-delete-firewall-ban

Re: Unblock IP restriction on port 8083 through SSH

Posted: Tue Mar 07, 2017 11:19 am
by skurudo
Commands for firewall:

Code: Select all

/usr/local/vesta/bin/v-add-firewall-ban    
/usr/local/vesta/bin/v-change-firewall-rule   
/usr/local/vesta/bin/v-add-firewall-chain  
/usr/local/vesta/bin/v-delete-firewall-ban   
/usr/local/vesta/bin/v-list-firewall        
/usr/local/vesta/bin/v-suspend-firewall-rule
/usr/local/vesta/bin/v-add-firewall-rule   
/usr/local/vesta/bin/v-delete-firewall-chain  
/usr/local/vesta/bin/v-delete-firewall-rule 
/usr/local/vesta/bin/v-list-firewall-ban    
/usr/local/vesta/bin/v-unsuspend-firewall-rule
/usr/local/vesta/bin/v-list-firewall-rule   
/usr/local/vesta/bin/v-update-firewall

Code: Select all

/usr/local/vesta/bin/v-add-sys-firewall    
/usr/local/vesta/bin/v-delete-sys-firewall  
/usr/local/vesta/bin/v-stop-firewall

Re: Unblock IP restriction on port 8083 through SSH

Posted: Tue Jul 02, 2019 8:15 pm
by mlopez
You should check the banned IPs using v-list-firewall-ban

Code: Select all

v-list-firewall-ban
IP               CHAIN  TIME      DATE
--               -----  ----      ----
185.137.111.129  INPUT  12:04:36  2019-06-18
185.137.111.125  INPUT  12:05:30  2019-06-18
14.231.90.13     MAIL   04:44:24  2019-06-30
45.13.39.23      MAIL   17:26:33  2019-07-01
Look at the CHAIN string and unban the IP using v-delete-firewall-ban [IP] [CHAIN]. In this example you could unban the IP 14.231.90.13 for the MAIL chain like this:

Code: Select all

v-delete-firewall-ban 14.231.90.13 MAIL
Then you can check again, looking for the "unbanned" IP:

Code: Select all

v-list-firewall-ban
IP               CHAIN  TIME      DATE
--               -----  ----      ----
185.137.111.129  INPUT  12:04:36  2019-06-18
185.137.111.125  INPUT  12:05:30  2019-06-18
45.13.39.23      MAIL   17:26:33  2019-07-01