Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenRC iptables load/save [slvd]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
alex-loves-god
n00b
n00b


Joined: 08 Jun 2025
Posts: 4
Location: Almere

PostPosted: Sun Jun 08, 2025 9:33 pm    Post subject: OpenRC iptables load/save [slvd] Reply with quote

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
View user's profile Send private message
alex-loves-god
n00b
n00b


Joined: 08 Jun 2025
Posts: 4
Location: Almere

PostPosted: Sun Jun 08, 2025 9:36 pm    Post subject: Reply with quote

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! :oops:

Sry for the spam.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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



OSZAR »