We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Reset IPTables
-
- Posts: 2
- Joined: Wed Feb 18, 2015 1:12 am
Reset IPTables
I wasn't sure which thread to put this in, but this seemed like the best option.
After uninstalling Vesta, I am no longer able to connect via SSH (which is not running on port 22, but on a miscellaneous port in the 40000s range). How can I permanently remove Vesta's IPTables rules and reset them to the Ubuntu 14.04 default?
I do currently have access to the server via an IPMI, so I can make whatever changes are necessary.
After uninstalling Vesta, I am no longer able to connect via SSH (which is not running on port 22, but on a miscellaneous port in the 40000s range). How can I permanently remove Vesta's IPTables rules and reset them to the Ubuntu 14.04 default?
I do currently have access to the server via an IPMI, so I can make whatever changes are necessary.
Re: Reset IPTables
Simple answer will be
But to remove all rules and filtres, make fw.sh with come below
and
Code: Select all
iptables -F
Code: Select all
#!/bin/sh
echo "Stopping firewall and allowing everyone..."
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
Code: Select all
chmod +x fw.sh
Re: Reset IPTables
by looking at :
I'll say:
find and modify inside the firewall rules
such as an example I restrained the port 8083 to my VPN but it went down so I replace the VPNsubnet by 0.0.0.0/0 :
then
Code: Select all
https://github.com/serghey-rodin/vesta/blob/master/bin/v-update-firewall
find and modify inside the firewall rules
Code: Select all
nano $VESTA/data/firewall/rules.conf
Code: Select all
VPNsubnet="10.1.1.0/24"
sed "s|$VPNsubnet|0.0.0.0/0|g" -i $VESTA/data/firewall/rules.conf
Code: Select all
v-update-firewall
Re: Reset IPTables
jodumont wrote: ↑Wed Sep 26, 2018 1:16 amby looking at :I'll say:Code: Select all
https://github.com/serghey-rodin/vesta/blob/master/bin/v-update-firewall
find and modify inside the firewall rules
such as an example I restrained the port 8083 to my VPN but it went down so I replace the VPNsubnet by 0.0.0.0/0 :Code: Select all
nano $VESTA/data/firewall/rules.conf
thenCode: Select all
VPNsubnet="10.1.1.0/24" sed "s|$VPNsubnet|0.0.0.0/0|g" -i $VESTA/data/firewall/rules.conf
Code: Select all
v-update-firewall
Perfect...