Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Firewall
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Dutch
View previous topic :: View next topic  
Author Message
micder
n00b
n00b


Joined: 18 Feb 2003
Posts: 23
Location: Terneuzen-nl

PostPosted: Thu Feb 27, 2003 3:34 pm    Post subject: Firewall Reply with quote

Heb een probleem met installeren firewall.
In Slack heb ik een eenvoudige firewall, die ik ook in Gentoo wil gebruiken.

Code:

# allow local-only connections
iptables -A INPUT  -i lo -j ACCEPT
# free output on any interface to any ip for any service (equal to -P ACCEPT)
iptables -A OUTPUT -j ACCEPT

# permit answers on already established connections
# and permit new connections related to established ones (eg active-ftp)
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

# Log everything else:  What's Windows' latest exploitable vulnerability?
# iptables -A INPUT -j LOG --log-prefix "FIREWALL:INPUT "

# set a sane policy:    everything not accepted > /dev/null
iptables -P INPUT    DROP
iptables -P FORWARD  DROP
iptables -P OUTPUT   DROP


Dit script start ik in rc.inet2
Hoe pak ik dit in Gentoo aan?
Back to top
View user's profile Send private message
water
Guru
Guru


Joined: 19 Jun 2002
Posts: 387
Location: Zierikzee, The Netherlands

PostPosted: Thu Feb 27, 2003 7:20 pm    Post subject: Reply with quote

Meest simpel is om de firewall in een bestandje te zetten, dat begint met
Code:
!#/bin/sh
en dat uitvoerbaar maken met
Code:
chmod +x bestandsnaam
Vervolgens zet je een verwijzing naar het bestand in /etc/conf.d/start.local. Je firewall wordt dan vanzelf gestart.
_________________
Groeten uit Holland
Back to top
View user's profile Send private message
micder
n00b
n00b


Joined: 18 Feb 2003
Posts: 23
Location: Terneuzen-nl

PostPosted: Sun Mar 02, 2003 3:37 pm    Post subject: Reply with quote

Dank je javascript:emoticon(':lol:')

E.e.a. was nog niet zo simpel omdat ik iptables niet voldoende in de kernel had zitten
Met de nieuwe kernel was de zaak snel opgelost en ga ik verder Stealth door het leven volgens Shields Up.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Dutch 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