-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ipv6rebased #309
Open
bastien-roucaries
wants to merge
86
commits into
mrash:master
Choose a base branch
from
bastien-roucaries:ipv6rebased
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Ipv6rebased #309
Changes from all commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
6d65f1d
Use INET_ADDRSTRLEN instead of hardcoding it
bastien-roucaries 4c73258
Let IPs resolve using getaddrinfo
khorben 94bed23
Factorize IP resolution between http and https
bastien-roucaries 03e1c20
Be more consistent when creating ~/.fwknoprc
khorben de84936
Improve IPV4 min length by using strlen
bastien-roucaries 2dc902b
Let IPs resolve to IPv6 addresses
khorben 5d8e6cf
Allow ipv6 for resolving url
bastien-roucaries 0ab6173
Let IPs resolve to IPv6 addresses
khorben 5a53b3b
Also catch the IPv6 version of INADDR_ANY
khorben 8cc8908
Migrate is_valid_ipv4_addr() to a more generic function
khorben 2754326
Implement is_valid_ip_addr() with getaddrinfo()
khorben 22aa677
Give have_allow_ip() a chance to allow IPv6
khorben d5ef047
Allow connecting to remote IPv6 hosts for TCP or UDP
khorben a8aa02d
Use uppercase to log "IP"
khorben cef18b7
Also check for <netinet/ip6.h> and <netinet/icmp6.h>
khorben 43dc125
Rework the network listening routine
khorben 508c9f3
Rework the network listening routine some more
khorben 47f2309
Code cleanup
khorben 00a4914
Also include <netinet/ip6.h> where relevant
khorben 9b9af40
Protect some more headers for inclusion
khorben c69c44e
Add support for receiving SPA messages over IPv6
khorben 73de567
Interpret incoming addresses according to their family
khorben 1dc74a1
Let access list stanzas be defined in IPv6
khorben b3ea4ab
Typo
khorben 43d1b4a
Typo
khorben 429ad67
Constify
khorben f2db271
Use a more appropriate type for sd_len
khorben c489d83
Allow access control "ANY" with any protocol family
khorben 65cbaf5
Use AF_INET instead of PF_INET
khorben b846b35
Use sizeof() instead of re-using hard-coded values
khorben a4e25b2
Use sizeof() instead of re-using hard-coded values
khorben b1e637b
Use a constant for AF_INET
khorben f6bc375
Use /usr/bin/env to locate perl
khorben 4aac32d
Rework IPv6 support when comparing addresses
khorben f3a2e8d
Fix processing command-line arguments with whitespace
khorben f956217
Set the address family for incoming SPA over UDP
khorben 8f64afb
Specify the family at run-time for TCP/UDP servers
khorben 7dfe143
Add IPv6 support to the plain UDP and TCP servers
khorben b18c82c
Constify
khorben 2170845
Terminate IPs resolved externally as expected
khorben e23c081
Prepare access stanzas for more address families
khorben 885ac36
Use the correct offset for inet_ntop()
khorben 0fe28e5
Simplify the calculation of pkt_data_len
khorben fa5a2a5
Correct the packet length calculation with IPv6
khorben 9ae3f8d
Fix some issues with TCP over IPv6
khorben 776c7ea
Begin to allow IPv6 addresses in source stanzas
khorben b17288a
Add a command-line option to enable IPv6 (TCP/UDP)
khorben e2dad97
Optimize moot variable initialization away
khorben 3cb8025
Fix the build on Linux (iptables)
khorben dd927b3
Fix the build with firewalld
khorben 2157346
Update the manual page for the -6 option (--ipv6)
khorben 5a24a63
Support further address families in the future
khorben cb3aa68
Verify if the protocol family matches incoming packets
khorben f3db1b3
Do not use INADDR_ANY for default ports
khorben e90822b
Check for errors from inet_addr() with INADDR_NONE
khorben 6ce6464
Fix build with NFQ enabled
khorben c2703e4
Allow the longest possible IPv6 address in sources
khorben 38d7931
Add a configuration variable for IPv6 firewall binaries
khorben 021c6b4
Add the fw_command6 member to the right struct fw_config
khorben 972b2e7
Initialize the configuration for ip6tables as well
khorben 50661f6
Add IPv6 support to --fw-list{,all}
khorben 5784487
Update a comment
khorben 7217e45
Add preliminary support for IPv6 with iptables
khorben ff4ea85
Code cleanup
khorben 6cbe8f3
Fix a couple more uses of ctype(3)
khorben da6f1c9
Provide enough space to resolve IPv6 addresses
khorben 98b367a
Remove support for IPv6 for rules shared with IPv4
khorben 4369eea
Add support for rule expiration with IPv6
khorben c899fcb
Revert "Remove support for IPv6 for rules shared with IPv4"
khorben fc5d908
Code cleanup
khorben a8c8a0d
Default to IPv6 rules when listening on IPv6
khorben 9ae09ed
Remove useless code
khorben 2ff082c
Resolve hostnames to IPv6 addresses in IPv6 mode
khorben 1a020c6
Re-indent
khorben 9633a26
Only support IPv4 on Windows
khorben f1b8181
Code cleanup
khorben d83e45a
Use "::" for matching any address for IPv6 rules
khorben 7929e3a
No longer accept colon (":") as port separator
khorben 09b520b
Fix DNAT with IPv6
khorben c3db6be
Use "::/0" for IPT_ANY_IPV6
khorben 0d28bae
Port src_dst_check() to IPv6
khorben a9ed5d6
Also output the value obtained for ip6tables
khorben 26c1da6
Complete the check and search for ip6tables
khorben 040459d
[test suite] start on IPv6 tests
mrash 9c5069e
[test suite] first working IPv6 complete cycle test
mrash 2f98e06
add IPv6 UDP server test, and IPv6 invalid destination test
mrash File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor issue: wrong indentation from here to the end of the function.
Also, to stay aligned with the global style, it is 4 spaces and not 2 for this whole function.