Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-15-2014, 10:56 PM
|
#1
|
Member
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349
Rep: 
|
IPv6 firewall question - opening port on router to single v6 address
say i want to open a single tcp port 100 to a single host behind an IPv6 router. This router is providing prefix delegation to the internal LAN, and is configuring the hosts via router advertisements; its firewall is configured to DROP all incoming, NEW state traffic. What would be the iptables rule to add that would allow forwarded traffic with destination port 100 TCP to 1 host behind the router? i would think that you would allow FORWARDed traffic coming in from the external interface with a destination port of 100 to a destination link-local address of the machine in question, something like:
Code:
ip6tables -A FORWARD -i external -p tcp --dport 100 -d fe80:1111:1111::1 -j ACCEPT
but this does not work
Last edited by psycroptic; 05-15-2014 at 10:58 PM.
|
|
|
05-16-2014, 04:27 AM
|
#2
|
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349
Rep: 
|
The destination address in your rule is wrong. You have to use the globally routable IPv6 address, not the link-local (fe80::/16) address. Link local addresses cannot be routed, and are never valid source or destination addresses in the FORWARD chain.
|
|
|
05-16-2014, 08:21 AM
|
#3
|
Member
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349
Original Poster
Rep: 
|
right, but all the LAN clients are getting DHCPv6-PD global addresses from the router, meaning that the addresses change (with Comcast PD, the prefix changes roughly once every 4 days), meaning that i would have to rewrite this rule every time it changes...
|
|
|
05-16-2014, 10:41 AM
|
#4
|
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349
Rep: 
|
That's obviously a deliberate strategy from Comcast to prevent people from running servers. I mean, heaven forbid you'd use your Internet connection for, well, Internet stuff.
When the local prefix changes, does that mean the external router address changes as well? In any case, it should be possible to have such a change trigger a script which could then modify and reapply the firewall rules.
|
|
|
05-16-2014, 11:00 AM
|
#5
|
Member
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349
Original Poster
Rep: 
|
yeah, i suppose i could just wildcard forward port 100, with no destination address:
Code:
ip6tables -A FORWARD -i external -p tcp --dport 100 -j ACCEPT
but that seems too broad
|
|
|
All times are GMT -5. The time now is 04:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|