LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-18-2011, 10:27 AM   #1
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
SLES 10.3 / SuSEfirewall2 blocks all outgoing IPv6 traffic


I am trying to configure an ipv6-only SLES 10.3 host with a firewall, but SuSEfirewall2 blocks all outgoing ipv6 traffic (DNS, ping6, SSH, etc). The incoming services I allow (SSH) work over ipv6. It all works when I turn the firewall off.

In /etc/sysconfig/SuSEfirewall2, I have set:
Code:
# Leave empty to automatically detect whether your kernel supports stateful matching.
FW_IPv6=""
# Reject outgoing IPv6 Packets?
FW_IPv6_REJECT_OUTGOING="no"
ip6tables -L output is here. Basically, in yast2's firewall config dialog, I'm allowing "SSH", "NIS client", "NFS client", "DNS Server" (but what I really was going for was DNS Client, but that's not a choice), and ports 50000-50005, everything else is SuSEfirewall2's defaults.

I placed the interface in the External Zone; it's a one-interface machine.

This is logged in dmesg when I try ping6 2002:920:c000:213:9:32:213:134:

Code:
Aug 18 11:23:29 susoaqa02 kernel: SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC=00:14:5e:1c:14:9c:00:14:5e:1c:a7:16:86:dd SRC=2002:0920:c000:0213:0009:0032:0213:0134 DST=2002:0920:c000:0213:0009:0032:0213:0063 LEN=104 TC=0 HOPLIMIT=64 FLOWLBL=0 PROTO=ICMPv6 TYPE=129 CODE=0 ID=23150 SEQ=4
Aug 18 11:23:33 susoaqa02 kernel: SFW2-OUT-ERROR IN= OUT=eth0 SRC=2002:0920:c000:0213:0009:0032:0213:0063 DST=2002:0920:c000:0213:0009:0032:0213:0134 LEN=104 TC=0 HOPLIMIT=64 FLOWLBL=0 PROTO=ICMPv6 TYPE=128 CODE=0 ID=23150 SEQ=8
And telnet 2002:920:c000:213:9:32:213:134 22:
Code:
 Aug 18 11:25:23 susoaqa02 kernel: SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC=00:14:5e:1c:14:9c:00:14:5e:1c:a7:16:86:dd SRC=2002:0920:c000:0213:0009:0032:0213:0134 DST=2002:0920:c000:0213:0009:0032:0213:0063 LEN=80 TC=0 HOPLIMIT=64 FLOWLBL=0 PROTO=TCP SPT=22 DPT=49280 WINDOW=5712 RES=0x00 ACK SYN URGP=0 OPT (020405A00402080A0006309102D53E0301030302)
Aug 18 11:25:35 susoaqa02 kernel: SFW2-OUT-ERROR IN= OUT=eth0 SRC=2002:0920:c000:0213:0009:0032:0213:0063 DST=2002:0920:c000:0213:0009:0032:0213:0134 LEN=80 TC=0 HOPLIMIT=64 FLOWLBL=0 PROTO=TCP SPT=49280 DPT=22 WINDOW=5760 RES=0x00 SYN URGP=0 OPT (020405A00402080A02D552850000000001030302)
I see the "ACCEPT all anywhere anywhere" in the OUTPUT chain, but the rule that's blocking the traffic(?) is in chain input_ext.

- SLES 10.3 x86_64
- SuSEfirewall2-3.4_SVNr142-7.16.27 (ie, I took this rpm from 10.4 which DID fix a bug I was seeing)
- kernel 2.6.16.60-0.81.2-smp (the latest for 10.3)
- I try very hard to avoid raw iptables; I have always used Shorewall in the past and this is my first foray into SuSEfirewall2.

Am I doing something wrong here? Why is outgoing ipv6 blocked and how do I get it to stop?

Edit:
If I reduce the rules to
Code:
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -p ALL -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp --dport ssh -j ACCEPT
COMMIT
then outgoing SSH and DNS don't work. Is that how it's supposed to be?

Last edited by AlucardZero; 08-18-2011 at 04:30 PM.
 
Old 08-18-2011, 05:14 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Original Poster
Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Barring any further input, based on my research, I conclude that stateful packet inspection of ipv6 traffic is not possible on SLES 10.

http://people.netfilter.org/pablo/docs/login.pdf
http://conntrack-tools.netfilter.org...l#requirements
https://bugzilla.redhat.com/show_bug.cgi?id=243739
CONFIG_NF_CONNTRACK_IPV6 kernel option does not exist in the kernel's config and the module nf_conntrack_ipv6 does not exist (both do on SLES 11.1)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SLES 11.1 disable ipv6 autoconfiguration AlucardZero SUSE / openSUSE 1 03-23-2011 02:02 PM
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 12:09 AM
need Help in SLES 10 with IPv6 diya_1426 Linux - Networking 2 03-31-2008 04:55 PM
need Help in SLES 10 with IPv6 diya_1426 Linux - Server 1 03-21-2008 01:02 PM
SLES 10 + vsftpd + SuSEfirewall2 problems yanik SUSE / openSUSE 1 11-16-2006 11:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration