Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 556918 - net-firewall/iptables: ip6rules-save doesn't make space for the parameters SNPT and DNPT
Summary: net-firewall/iptables: ip6rules-save doesn't make space for the parameters SN...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-07 09:20 UTC by Jan Jaros
Modified: 2021-11-06 17:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Jaros 2015-08-07 09:20:08 UTC
Ip6rules-save doesn't make space for the parameters SNPT and DNPT

Reproducible: Always

Steps to Reproduce:
ip6tables -t mangle -A PREROUTING  -d 2a01:430:30:80::/58  -j DNPT --src-pfx 2a01:430:30:80::/58 --dst-pfx fd40:9dc7:b528::/58
ip6tables -t mangle -A POSTROUTING -s fd26:14:ba10:80::/58 -j SNPT --dst-pfx 2a01:430:30:80::/58 --src-pfx fd40:9dc7:b528::/58
ip6tables-save
Actual Results:  
# Generated by ip6tables-save v1.4.21 on Fri Aug  7 11:15:58 2015
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [2:226]
:POSTROUTING ACCEPT [2:226]
-A PREROUTING -d 2a01:430:30:80::/58 -j DNPT--src-pfx 2a01:430:30:80::/58 --dst-pfx fd40:9dc7:b528::/58 
-A POSTROUTING -s fd26:14:ba10:80::/58 -j SNPT--src-pfx fd40:9dc7:b528::/58 --dst-pfx 2a01:430:30:80::/58 
COMMIT
# Completed on Fri Aug  7 11:15:58 2015

Expected Results:  
# Generated by ip6tables-save v1.4.21 on Fri Aug  7 11:15:58 2015
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [2:226]
:POSTROUTING ACCEPT [2:226]
-A PREROUTING -d 2a01:430:30:80::/58 -j DNPT --src-pfx 2a01:430:30:80::/58 --dst-pfx fd40:9dc7:b528::/58 
-A POSTROUTING -s fd26:14:ba10:80::/58 -j SNPT --src-pfx fd40:9dc7:b528::/58 --dst-pfx 2a01:430:30:80::/58 
COMMIT
# Completed on Fri Aug  7 11:15:58 2015
Comment 1 Jan Jaros 2015-08-07 09:22:03 UTC
PS:
~ # ip6tables-save > tmp.txt
~ # ip6tables-restore < tmp.txt 
Bad argument `2a01:430:30:80::/58'
Error occurred at line: 8
Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
Comment 2 Pacho Ramos gentoo-dev 2015-08-13 10:51:17 UTC
Please show "emerge --info iptables" output
Comment 3 Jan Jaros 2015-08-13 12:02:59 UTC
(In reply to Pacho Ramos from comment #2)
> Please show "emerge --info iptables" output

~ # emerge --info iptables
Portage 2.2.20 (python 3.4.1-final-0, default/linux/amd64/13.0, gcc-4.8.4, glibc-2.20-r2, 4.0.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_X3440_@_2.53GHz-with-gentoo-2.2
KiB Mem:     5071888 total,    172600 free
KiB Swap:    4194300 total,   3762660 free
Timestamp of repository gentoo: Thu, 13 Aug 2015 03:00:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r2::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.4.1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/mnt/data/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LC_ALL="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7 -l7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/data/portage/tmp"
USE="acl acpi amd64 bash-completion berkdb bzip2 caps cracklib crypt curl cxx dane fam fuse iconv icu ipv6 libnotify lzma lzo mmap mmx mmxext ncurses network nls nptl openrc pam pcre pie rar readline slang sse sse2 sse3 ssl ssse3 syslog tcpd threads udev unicode xattr zlib" ABI_X86="64" CPU_FLAGS_X86="mmx sse sse2 sse3 sse4_1 ssse3" CURL_SSL="openssl" ELIBC="glibc" KERNEL="linux" LINGUAS="cs" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 arm armeb" QEMU_USER_TARGETS="x86_64 arm armeb" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

net-firewall/iptables-1.4.21-r1::gentoo was built with the following:
USE="ipv6 -netlink -static-libs" ABI_X86="64"