You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that there is no default host as well no default rule for l7_rules chain. Configure iptables as:
iptables -A INPUT -s 192.168.100.1 -j MARK --set-mark 1
Next try to send 2 requests from 192.168.100.1:
with Referer: http://goodhost.com
with Referer: http://badhost.com/foo
In both the cases HTTPtables block the requests, but Tempesta does not send any HTTP response as expected. From browsing the code it seems we just ignore block argument returned from HTTPtables.
Testing
For the scenario and configuration as the above:
request with Referer: http://goodhost.com
request with Referer: http://badhost.com/foo
Check that configuration option response_body also does the work. In my demo scenario I used
The linked task is #1063 , but at this moment we just need to send any error response to a client, just to have consistent configuration and do not make users wondering. This is also a part of #1108 .
Scope
On configuration
Note that there is no default host as well no default rule for
l7_rules
chain. Configure iptables as:Next try to send 2 requests from
192.168.100.1
:Referer: http://goodhost.com
Referer: http://badhost.com/foo
In both the cases HTTPtables block the requests, but Tempesta does not send any HTTP response as expected. From browsing the code it seems we just ignore
block
argument returned from HTTPtables.Testing
For the scenario and configuration as the above:
request with
Referer: http://goodhost.com
request with
Referer: http://badhost.com/foo
Check that configuration option
response_body
also does the work. In my demo scenario I usedPlease also add tests for the configuration described in https://github.com/tempesta-tech/tempesta/wiki/HTTP-tables#default-rules-and-chains to
./http_rules/test_http_tables.py
The text was updated successfully, but these errors were encountered: