View previous topic :: View next topic |
Author |
Message |
alex-loves-god n00b

Joined: 08 Jun 2025 Posts: 4 Location: Almere
|
Posted: Sun Jun 08, 2025 9:33 pm Post subject: OpenRC iptables load/save [slvd] |
|
|
Hey, God bless you all!
I installed Gentoo this weekend on my Raspberry Pi 4b and it works amazingly fast! Hallelujah!
I didn't went with systemd because I want to learn OpenRC and don't bloat my system too much, even though I also like systemd service files and how easy it is, but since I don't know OpenRC it's probably pretty easy too, I just have to get comfortable.
So after installing a couple of things I installed PiHole and Wireguard-UI in a docker and I loaded up the Wireguard module, I could connect to the network and to the PiHole, but I couldn't access the internet and after searching for a while on internet it were 2 iptables lines that I needed:
iptables -A FORWARD -i wg0 -o eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o wg0 -m state --state ESTABLISHED,RELATED -j ACCEPT
Internet working! Great!
Then I `rc-service iptables start` and `rc-update add iptables default`
I've searched the internet and read the Gentoo handbook but it wasn't very extended on OpenRC. I read the /etc/init.d/iptables script but I am not sure if it saves and loads the rules when it's started and stopped. Can someone explain a bit please?
Last edited by alex-loves-god on Sun Jun 08, 2025 9:37 pm; edited 1 time in total |
|
Back to top |
|
 |
alex-loves-god n00b

Joined: 08 Jun 2025 Posts: 4 Location: Almere
|
Posted: Sun Jun 08, 2025 9:36 pm Post subject: |
|
|
Nevermind I think it does!
I'm reading it again and it does checkconfig and then saves it if it's not there, and on start it does a restore!
I didn't even read it properly!
Sry for the spam. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|