Moving servers, linux firewall settings

I moved server, i hav Virtualmin GPL.

I Have Fail2ban also. Can i just copy linux firewall settings and apply them into new server (with backup/restore feature)?

Howdy,

Whenever you generate a backup using Virtualmin’s Backup and Restore feature – that only copies settings related to specific Virtual Servers. You can enable additional Virtualmin settings to be backed up too on that screen (such as Account Plans, Server Templates, and the like).

But those are all separate from firewall settings – which aren’t part of that backup.

Firewall settings are distro specific, so how exactly you’d copy them depends on which distribution you’re using. Which distribution is it that you’re using?

-Eric

Hello

I can make back up from firewall with Webmin -> Backup Configuration Files -> Linux firewall

I use Debian Lenny in both servers. I didnt use lates debian in new server, because i wanted move to be easy as possible :slight_smile:

This is my setup

[code]host1:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
fail2ban-proftpd tcp – anywhere anywhere multiport dports ftp,ftp-data,ftps,ftps-data
fail2ban-apache tcp – anywhere anywhere multiport dports www,https
fail2ban-ssh tcp – anywhere anywhere multiport dports ssh
DROP all – static-67-215-225-77.ipcom.comunitel.net anywhere
DROP all – host-217-195-204-194.teklan.com.tr anywhere
DROP all – 134.99.12.102 anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain fail2ban-apache (1 references)
target prot opt source destination
RETURN all – anywhere anywhere

Chain fail2ban-proftpd (1 references)
target prot opt source destination
RETURN all – anywhere anywhere

Chain fail2ban-ssh (1 references)
target prot opt source destination
RETURN all – anywhere anywhere

[/code]