Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Jan 2018, 18:09
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Best way to get the firewall to come up automatically?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
Lassar

Joined: 08 Jul 2014
Posts: 193

PostPosted: Sun 26 Nov 2017, 13:51    Post subject:  Best way to get the firewall to come up automatically?  

I am trying to bring up the firewall then the internet before starting kodi in
kodipup.

What is the best way to get the firewall to come up automatically?

Do you have to call /etc/init.d/rc.firewall with a parameter of start?

Do you have to have the internet up before calling /etc/init.d/rc.firewall?

Or is it simply sufficient to have /etc/init.d/rc.firewall in you /etc/init.d
directory?
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 3317
Location: King's Lynn, UK.

PostPosted: Mon 27 Nov 2017, 17:30    Post subject:  

Hi, Lassar.

I'm no expert on this kinda stuff, I'll be the first to admit. But as far as I'm aware, on every system I've ever used (where a firewall is in use), you must have your internet connection up and running BEFORE you can start your firewall.....since a firewall is all about ports and network connections.

Without a dynamic network connection already in place, I can't see that a firewall would have anything to work with..!

I'm certain somebody else will be along shortly who can probably explain it a wee bit better than I can.....


Mike. Wink

_________________
If I've helped you.....please say 'Thanks'!
MY PUPPY PACKAGES
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
Smithy


Joined: 12 Dec 2011
Posts: 813

PostPosted: Thu 30 Nov 2017, 18:01    Post subject:  

/etc/rc.d/rc.firewall
/etc/rc.d/rc.firewall start
You can alter the file with a text editor and then save it, then make an .sh file and put it in startup, like this:
exec /usr/local/firewallstate/firewallstate &

Note: This applies to Puppies with the firewall that has a Linux Firewall Configuration Utility. Not sure which Puppies have that other one.
The config file might end up in the same place though.
And I think the new one goes up to eleven as opposed to the old one that would only go up to ten.

BUT, you might find that KODI requires access to (or makes) a lot of nodes and stuff.

I'm sure Kodipup maker would know more, but you should be able to do what you require maybe after typing in or observing what KODI requires of you.
I think this will kill it if you are on eth0:
Exec=roxterm
iptables -P INPUT DROP
iptables -F INPUT
iptables -N inbound
iptables -A INPUT -i eth0 -j inbound
iptables -A INPUT -i lo -j ACCEPT
iptables -A inbound -m state --state ESTABLISHED -j ACCEPT
iptables -A inbound -m state --state RELATED -j ACCEPT
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0363s ][ Queries: 11 (0.0072s) ][ GZIP on ]