openethereum/parity
Joseph Mark b5f1524e78 Refactor --allow-ips to handle custom ip-ranges (#6144)
* Add checks for additional reserved ip addresses

100.64.0.0/10 and 240.0.0.0/4 are both reserved but not currently
filtered.

* Add check for special purpose addresses

192.0.0.0/24 - Used for the IANA IPv4 Special Purpose Address Registry

* Refactor ip_utils (#5872)

* Add checks for all ipv4 special use addresses
* Add comprehensive ipv4 test cases

* Refactor Ipv6 address checks (#5872)

* Refactor AllowIP (#5872)

* Add IpFilter struct to wrap predefined filter (AllowIP) with custom
allow/block filters.
* Refactor parsing of --allow-ips to handle custom filters.
* Move AllowIP/IpFilter from ethsync to ethcore-network where they
are used.

* Revert Cargo.lock

* Tests for custom ip filters (#5872)

* Add "none" as a valid argument for --allow-ips to allow narrow
custom ranges, eg.: --allow-ips="none 10.0.0.0/8"
* Add tests for parsing filter arguments and node endpoints.
* Add ipnetwork crate to dev dependencies for testing.

* Add ipv6 filter tests (#5872)

* Revert parity-ui-precompiled to master

* Fix minor detail in usage.txt (#5872)

* Spaces to tabs

* Rename IpFilter::new() to ::default()

* Small readability improvements

* Test (#5872)

* Revert "Test (#5872)"

This reverts commit 7a8906430a6dad633fe29df3dca57f1630851fa9.
2017-07-28 19:06:39 +02:00
..
cli Refactor --allow-ips to handle custom ip-ranges (#6144) 2017-07-28 19:06:39 +02:00
light_helpers EIP-168, 169: Dust protection (#4757) 2017-06-28 09:10:57 +02:00
account.rs Use standard paths for Ethash cache (#5881) 2017-07-10 12:57:40 +02:00
blockchain.rs Light client improvements (#6156) 2017-07-27 13:50:12 +02:00
boot.rs Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
cache.rs Memory usage optimization (#5526) 2017-05-02 11:40:03 +02:00
configuration.rs Refactor --allow-ips to handle custom ip-ranges (#6144) 2017-07-28 19:06:39 +02:00
dapps.rs Don't display an overlay in case the time sync check fails. (#6164) 2017-07-27 17:36:23 +02:00
deprecated.rs Dapps and RPC server merge (#5365) 2017-04-03 10:27:37 +02:00
dir.rs Use standard paths for Ethash cache (#5881) 2017-07-10 12:57:40 +02:00
helpers.rs Refactor --allow-ips to handle custom ip-ranges (#6144) 2017-07-28 19:06:39 +02:00
informant.rs Bump snap version and tweak importing detection logic (#6079) 2017-07-18 16:59:33 +02:00
ipfs.rs Dapps and RPC server merge (#5365) 2017-04-03 10:27:37 +02:00
main.rs Refactor --allow-ips to handle custom ip-ranges (#6144) 2017-07-28 19:06:39 +02:00
migration.rs initial light CLI 2017-03-22 18:32:04 +01:00
modules.rs Initial Whisper implementation (#6009) 2017-07-14 20:40:28 +02:00
params.rs Refactor price_info (#6003) 2017-07-16 18:22:45 +02:00
presale.rs Ledger wallet support (#4486) 2017-02-09 19:07:06 -05:00
rpc.rs Don't display an overlay in case the time sync check fails. (#6164) 2017-07-27 17:36:23 +02:00
rpc_apis.rs only add pubsub if generic pubsub off 2017-07-27 12:55:08 +02:00
run.rs Light client improvements (#6156) 2017-07-27 13:50:12 +02:00
secretstore.rs Fixing secretstore TODOs - part 2 (#5416) 2017-04-25 21:34:03 +02:00
signer.rs UI server refactoring (#5580) 2017-05-24 12:24:07 +02:00
snapshot.rs Use standard paths for Ethash cache (#5881) 2017-07-10 12:57:40 +02:00
stratum.rs remove the deprecated options in rustfmt.toml (#5616) 2017-05-19 17:12:20 +02:00
sync.rs Initial Whisper implementation (#6009) 2017-07-14 20:40:28 +02:00
upgrade.rs Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
url.rs Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
user_defaults.rs User_defaults now contains serialization for is_first_launch parameter; (#6068) 2017-07-18 15:38:38 +02:00
whisper.rs Initial Whisper implementation (#6009) 2017-07-14 20:40:28 +02:00