Thomas Waldmann
8624d5dbd9
iptools: add docstring, minor changes
2014-09-29 11:31:22 +02:00
Jonne Haß
5e637b14c9
Handle IPv4-mapped IPv6 addresses
...
Some reverse proxy configurations pass REMOTE_ADDR
as a IPv4-mapped IPv6 address when listening on a
IPv6 socket. This patch converts such a mapped
address into a IPv4 address at all usages of
REMOTE_ADDR. It handles both, the ::ffff:192.0.2.128
format as well as the deprecated ::192.0.2.128 format.
2014-09-29 06:21:24 +02:00
Thomas Waldmann
dd95d84404
remove deprecated commit_on_success (works for Django >= 1.6), update requirements to Django 1.6.7
2014-09-26 02:32:46 +02:00
Thomas Waldmann
63c1cdbe6b
remove support for django 1.5.x, stuff not needed any more when requiring >= 1.6
2014-09-26 02:25:08 +02:00
Thomas Waldmann
7344f7e284
quick fix for py3 compatibility
2014-09-26 02:07:58 +02:00
Thomas Waldmann
8c25bdf14d
show related hosts' ipv4/v6 addr from nameserver
2014-09-26 00:16:52 +02:00
Thomas Waldmann
3b4669771a
rather use PositiveSmallIntegerField for netmasks
2014-09-25 23:47:48 +02:00
Thomas Waldmann
27fe20da18
make netmasks / prefix lengths configurable in host record
2014-09-25 23:40:52 +02:00
Thomas Waldmann
4280728bfa
add comments for related hosts
2014-09-25 22:05:14 +02:00
Thomas Waldmann
4d70a77ab8
add pre_delete handler for RelatedHost to remove related hosts from DNS
2014-09-25 20:40:14 +02:00
Thomas Waldmann
c1f2f91dc6
add user interface for related hosts
2014-09-25 20:15:18 +02:00
Thomas Waldmann
fa640706f5
add related hosts functionality, to update host records based on main host network address + interface id
...
this is esp. useful for v6 hosts, where your provider might give you a changing prefix (we assume /64), but your interface ids stay the same.
but same mechanism also principally works for v4 (we assume /29), except that you usually do not get a v4 network where the network address is changing.
and when it comes to dynamic addresses, many people only get 1 ipv4 address anyway. the related host could then be used for aliaseses with ifid == 0 for all aliases.
2014-09-23 00:48:54 +02:00
Thomas Waldmann
66cedf5425
use FQDN namedtuple for test hostnames
2014-09-22 23:41:35 +02:00
Thomas Waldmann
cf075aa1aa
fix some places that relied on TEST_HOST being str
...
this prepares next commit
2014-09-22 23:39:23 +02:00
Thomas Waldmann
a064ba1961
rename domain_blacklist_validator to host_blacklist_validator
2014-09-21 22:48:51 +02:00
Thomas Waldmann
522911f6f8
rename BlacklistedDomain to BlacklistedHost, add migration
2014-09-21 22:47:05 +02:00
Thomas Waldmann
5fe8f13015
rename some model attributes, add migration
...
Domain.domain to Domain.name
Host.subdomain to Host.name
BlacklistedDomain.domain to BlacklistedDomain.name_re
2014-09-21 22:31:26 +02:00
Thomas Waldmann
06e0225c0e
removed email address on request
2014-09-19 19:02:26 +02:00
Thomas Waldmann
941d2daabf
add openwrt configuration help (ipv4)
2014-09-19 08:13:19 +02:00
Thomas Waldmann
3da3d82eb4
update CHANGES, fix typo in comment
2014-09-12 21:11:55 +02:00
Thomas Waldmann
6fc1f64698
disallow deleting hosts that are flagged abuse_blocked
2014-09-12 20:53:08 +02:00
Thomas Waldmann
804eda920c
catch dns.tsig.PeerBadTime
2014-09-08 02:44:12 +02:00
Thomas Waldmann
ded5e0cb8b
updated i18n (.mo)
2014-09-04 18:50:19 +02:00
Thomas Waldmann
cb00af18d2
updated i18n (.po)
2014-09-04 18:50:05 +02:00
Thomas Waldmann
8a39d6a90e
reduce amount of i18n strings / words, standardize some terms, use placeholders
2014-09-04 18:48:29 +02:00
Thomas Waldmann
277ba9a185
remove "created_by" from admin view filters, does not scale. add "created".
2014-09-03 18:23:50 +02:00
Thomas Waldmann
a084110d4b
give more feedback to user via web ui in case of abuse, host unavailable, bad ip addresses, good updates
2014-09-03 17:49:13 +02:00
Thomas Waldmann
5f55fedd73
remove unused context data, fix nav
2014-09-03 17:16:12 +02:00
Thomas Waldmann
5913535ab8
see client/server result msgs on the host view
2014-09-03 16:56:42 +02:00
Thomas Waldmann
556194ca3f
save latest client/server result to model
2014-09-03 16:26:04 +02:00
Thomas Waldmann
1802b91f68
rename methods dealing with client/server "fault" to more general "result"
2014-09-03 15:34:31 +02:00
Thomas Waldmann
100a2fc13c
updated i18 (.mo)
2014-09-03 14:40:39 +02:00
Thomas Waldmann
1e3fb59b60
updated i18 (.po)
2014-09-03 14:39:48 +02:00
Thomas Waldmann
fbbe0ad723
translate model fields' help_text
2014-09-03 14:29:54 +02:00
Thomas Waldmann
861e1d2c89
translate placeholder strings
2014-09-03 14:11:18 +02:00
Thomas Waldmann
6554f9f1bf
abuse email msg text: make a constant from it
2014-09-02 23:57:06 +02:00
Thomas Waldmann
8738b135fc
add tests for update/delete api with invalid IPs
2014-09-02 23:50:39 +02:00
Thomas Waldmann
9bd09b6008
on travis do not run tests that require sequential execution (can not run in parallel)
2014-09-02 00:14:24 +02:00
Thomas Waldmann
3d91f9bf81
found why other service test has issues on travis-ci, removed sleep again (didn't help anyway)
2014-08-31 18:31:03 +02:00
Thomas Waldmann
f1b8a76906
increase sleep time for other service test, last try ...
2014-08-31 18:03:45 +02:00
Thomas Waldmann
4ef30e4fb8
try to avoid race condition in other service updater test, increasing sleep time
2014-08-31 17:44:01 +02:00
Thomas Waldmann
26c48ea93b
try to avoid race condition in other service updater test
2014-08-31 17:36:47 +02:00
Thomas Waldmann
9a85dea366
updated i18n (.mo)
2014-08-31 02:57:14 +02:00
Thomas Waldmann
205c117d2c
updated i18n
2014-08-31 02:55:58 +02:00
Thomas Waldmann
9e6ccc3f26
pfSense note grammar fix
2014-08-31 02:45:38 +02:00
Thomas Waldmann
5d347b3178
updated i18n
2014-08-31 02:40:41 +02:00
Thomas Waldmann
b6ae8dcd60
use smaller add host / add domain buttons
2014-08-31 02:22:00 +02:00
Thomas Waldmann
c5672cea22
use host.get_fqdn() function to assemble the fqdn, no bold formatting
2014-08-31 02:20:36 +02:00
Thomas Waldmann
172c215ea5
remove useless "back to overview" links in content area - we have a link to overview in navbar
2014-08-31 02:03:11 +02:00
Thomas Waldmann
6fd1bd4da1
add host view: use 50/50 split for form and help
2014-08-31 01:52:59 +02:00