Can iptables/ip6tables start and work in parallel
Pascal , thanks for the reply and I have small question regarding the restrictions due to IPv4 mapped addresses.
Can you mention what are the restrictions on the dual stack machine with IPv4 mapped addresses
Vidya Ravipati a crit :
Quoted 2 lines
1)Can iptables and ip6tables run together on same linux machine.
Yes, of course. iptables and ip6tables are mostly independent, as IPv4 and IPv6 are on any dual stack machine (with restrictions due to IPv4-mapped addresses).
Quoted 6 lines
2)I found out in redhat linux adminstration guide that Iptables cannot start along with Ip6tables.
http://www.redhat.com/docs /manuals/linux/RHL-8.0-Manual /security-guide/ch-fw.html
This is what it is mentioned in this page
The IPChains and IP6Tables services must be turned off to use the
IPTables
Quoted 3 lines
service with the following commands:
Then how can we build a firewall for a machine which can be used both in IPv4 and IPv6 networks.
That may be a specific RedHat restriction. I don't know RedHat at all and use my own scripts to create iptables and ip6tables rulesets.
Vidya Sagar Ravipati
Graduate Student,
Department of Computer Science,
State University of New York,
StonyBrook-11790
Phone:
Home :631-216-2410
Mobile:631-220-9167
Quoted 7 lines · Vidya Ravipati
Quoted 5 lines
Yes, of course. iptables and ip6tables are mostly independent, as IPv4 and IPv6 are on any dual stack machine (with restrictions due to IPv4-mapped addresses).
Can you mention what are the restrictions on the dual stack machine with IPv4 mapped addresses
IPv4-mapped addresses are special IPv6 addresses used to represent IPv4 addresses. They have the prefix ::ffff:0:0/96, and the last 8 digits are the hexadecimal representation of the IPv4 address. They also have a special human-readable representation. For example the IPv4-mapped IPv6 address for 127.0.0.1 is "::ffff:7f00:1" or "::ffff:127.0.0.1".
On IPv4+IPv6 dual stack Linux hosts, by default, IPv6 sockets can also be used for IPv4 communications. IPv4-mapped IPv6 addresses are used to communicate with a remote IPv4 host using a local IPv6 socket. An IPv6 socket listening on :: (any local IPv6 address) can also accept IPv4 communications and will see the IPv4-mapped addresses (beware with ACL). These communications use IPv4-mapped IPv6 addresses at the IPv6 socket level and real IPv4 addresses at network level, so the real network traffic is IPv4 and only iptables will see it, not ip6tables.
Other operating systems may have different default behaviours. On Linux, the default behaviour can be changed with the kernel parameter (/proc/sys/)net/ipv6/bindv6only. When set to 1, new IPv6 sockets are be limited to "pure" IPv6 communications and cannot use IPv4-mapped addresses, so IPv4 and IPv6 are completely independent.
I think you should find a lot of more detailed documentation on the web, but I don't have any pointer right now.