I am on a system running 12.3 and mounted the system disk of a 12.2-system.
is it possible to copy the firewall configuration files from the 12.2-disk to the system running 12.3?
which files are relevant?
if not, can I access the list of opened ports on the 12.2-disk in a readable way to make it easier to enter them via yast to the firewall config of the 12.3 system?
On Sat, 02 Nov 2013 18:26:06 +0000, suse paul wrote:
> I am on a system running 12.3 and mounted the system disk of a
> 12.2-system.
>
> is it possible to copy the firewall configuration files from the
> 12.2-disk to the system running 12.3?
> which files are relevant?
>
> if not, can I access the list of opened ports on the 12.2-disk in a
> readable way to make it easier to enter them via yast to the firewall
> config of the 12.3 system?
Grab the firewall related files from /etc/sysconfig maybe? I haven’t
tried it, but I don’t see why that wouldn’t work.
Yes, the file is called “/etc/sysconfig/SuSEfirewall2” and can be copied between systems. You must run this terminal command “sudo /sbin/SuSEfirewall2” after any changes to go into effect if you change this file on the target system.
This is good to know and I wondered if it would solve my problem.
After I did a new install, I had to dig into the firewall to open up a port to permit CUPS to accept remote printing requests.
It would be a lot easier for me to just copy this file, if this would fix it.
On Mon, 04 Nov 2013 06:32:40 +0000, hextejas wrote:
> This is good to know and I wondered if it would solve my problem.
>
> After I did a new install, I had to dig into the firewall to open up a
> port to permit CUPS to accept remote printing requests.
> It would be a lot easier for me to just copy this file, if this would
> fix it.
>
> Will it ?
>
> thanks
It should - try it and see. That’s how the rest of us would find out if
we didn’t know (and, speaking for myself, I don’t know because I’ve never
had to do that before - but logically it makes sense).
Back up the old file first so if it doesn’t, you can get back to where
you were.
On 2013-11-04 07:32, jdmcdaniel3 wrote:
>
> hextejas;2595379 Wrote:
>> This is good to know and I wondered if it would solve my problem.
>>
>> After I did a new install, I had to dig into the firewall to open up a
>> port to permit CUPS to accept remote printing requests.
>> It would be a lot easier for me to just copy this file, if this would
>> fix it.
>>
>> Will it ?
> As far as I know your entire firewall configuration can be transferred
> between PC’s with this file in openSUSE.
A note about that.
You can copy the firewall config file across the same openSUSE release.
If the versions are different, I would instead compare the files and
transfer the settings by hand, because the new version may have
additions and/or removals.
I would copy the other version with a different name, and then open both
with “meld”, which is a KDE editor that opens two files side by side,
marking the differences in both. You can transfer paragraphs across with
a single click or edit any of the files.
(this assumes there are no custom additions, they are on a different
file - but if you made them, you already know where they are )
On the other hand, the trick may not work since openSUSE 13.1, because
the network interface will no longer be named eth0, wlan0, etc. At least
you’ll have to edit those.
–
Cheers / Saludos,
Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)