Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Internet2 (or IPv6) and iptables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
taerix
n00b
n00b


Joined: 15 Oct 2007
Posts: 6

PostPosted: Mon Oct 15, 2007 2:32 am    Post subject: Internet2 (or IPv6) and iptables Reply with quote

Is there a way to deny connections from hosts not on internet2? Or if that isn't a possibility, can I limit traffic to only IPv6?

I think iptables would be the way to go for this, not entirely sure though. Any method to accomplish this would be awesome. I heard some things about Hippie. http://hippie.oofle.com/tiki-index.php?page=Features. Dunno if that could help.
Back to top
View user's profile Send private message
blu3bird
Retired Dev
Retired Dev


Joined: 04 Oct 2003
Posts: 614
Location: Munich, Germany

PostPosted: Mon Oct 15, 2007 5:08 am    Post subject: Reply with quote

Iptables will do. Just make sure you don't use anything relying on ipv4...

Code:
# clear chains
iptables -F INPUT
iptables -F OUTPUT
iptables -F FORWARD
ip6tables -F INPUT
ip6tables -F OUTPUT
ip6tables -F FORWARD

# set policies
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP
ip6tables -P INPUT ACCEPT
ip6tables -P OUTPUT ACCEPT
ip6tables -P FORWARD ACCEPT


ps: you could also try unsetting CONFIG_INET but that would definitly break everything, at least x.org.
_________________
Black Holes are created when God divides by zero!
Back to top
View user's profile Send private message
taerix
n00b
n00b


Joined: 15 Oct 2007
Posts: 6

PostPosted: Mon Oct 15, 2007 5:35 am    Post subject: Reply with quote

Thanks a ton! I'll try that.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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