I do, but I am not sure what the differences from lines 49c49 and 62c62 and 84x87 are about.ncmprhnsbl wrote: ↑19 Nov 2023, 12:41if you already use a custom rc.FireWall, be sure to compare and combine.
Via
Code: Select all
diff -y /mnt/loop/etc/rc.d/rc.FireWall /mnt/live/memory/images/001-core.xzm/etc/rc.d/rc.FireWall
I think in one version, there is also either a tab or several whitespaces inserted at that line, and in the other version there is/are not.
Basically, the differences with these 3 lines ( 49c49 and 62c62 and 84x87 ) can all be ignored, correct?
Code: Select all
root@rava:~# diff /mnt/loop/etc/rc.d/rc.FireWall /mnt/live/memory/images/001-core.xzm/etc/rc.d/rc.FireWall
49c49
<
---
>
62c62
<
---
>
75a76,78
>
> # ssh?
> $IPTABLES -A OUTPUT -p tcp --sport 1024:65535 -m state --state ESTABLISHED,RELATED,NEW -j ACCEPT
84c87
<
---
>
root@rava:~#
There is still one nitpick:
it still states
Code: Select all
# usage: rc.firewall start|stop|status
Code: Select all
# usage: rc.FireWall start|stop|status
Added in 30 minutes 43 seconds:
Another thing, is /opt/porteus-scripts/gtk-firewall only able to be started when activated via a module? Or copied to /opt/porteus-scripts/
Because my mloop'd version fails:
Code: Select all
root@rava:~# /mnt/loop/opt/porteus-scripts/gtk-firewall
checkbox was turned on
Traceback (most recent call last):
File "/mnt/loop/opt/porteus-scripts/gtk-firewall", line 167, in on_button5_toggled
self.status_bar_on()
File "/mnt/loop/opt/porteus-scripts/gtk-firewall", line 90, in status_bar_on
return self.status_bar.push(1, "FIREWALL STATUS: ON | MODE: " + self.fw_mode())
AttributeError: 'GtkFireW' object has no attribute 'status_bar'
Traceback (most recent call last):
File "/mnt/loop/opt/porteus-scripts/gtk-firewall", line 177, in <module>
win = GtkFireW()
File "/mnt/loop/opt/porteus-scripts/gtk-firewall", line 74, in __init__
self.status_bar_on()
File "/mnt/loop/opt/porteus-scripts/gtk-firewall", line 90, in status_bar_on
return self.status_bar.push(1, "FIREWALL STATUS: ON | MODE: " + self.fw_mode())
File "/mnt/loop/opt/porteus-scripts/gtk-firewall", line 106, in fw_mode
return fmode
UnboundLocalError: local variable 'fmode' referenced before assignment
root@rava:~#
Added in 2 minutes 37 seconds:
The original from Port 5.01 also fails for me:
Code: Select all
root@rava:~# /opt/porteus-scripts/gtk-firewall
checkbox was turned on
Traceback (most recent call last):
File "/opt/porteus-scripts/gtk-firewall", line 162, in on_button5_toggled
self.status_bar_on()
File "/opt/porteus-scripts/gtk-firewall", line 88, in status_bar_on
return self.status_bar.push(1, "FIREWALL STATUS: ON | MODE: " + self.fw_mode())
AttributeError: 'GtkFireW' object has no attribute 'status_bar'
Traceback (most recent call last):
File "/opt/porteus-scripts/gtk-firewall", line 172, in <module>
win = GtkFireW()
File "/opt/porteus-scripts/gtk-firewall", line 72, in __init__
self.status_bar_on()
File "/opt/porteus-scripts/gtk-firewall", line 88, in status_bar_on
return self.status_bar.push(1, "FIREWALL STATUS: ON | MODE: " + self.fw_mode())
File "/opt/porteus-scripts/gtk-firewall", line 104, in fw_mode
return fmode
UnboundLocalError: local variable 'fmode' referenced before assignment
My system info:
Code: Select all
root@rava:~# cat /etc/porteus/*
001-core.xzm:20230922
002-xorg.xzm:20231001
002-xtra.xzm:20230922
003-xfce.xzm:20230922
06-man.xzm:20230915
initrd.xz:20220928