mod_echo configuration

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

mod_echo configuration

anthony
Hello,

I am new on this mailing list and I hope to find an answer on my apache2
configuration problem.

My OS : Linux openSUSE 15.2 64 bit
Apache : apache2 2.4.33 standard install
    browser url : local host --> It works!

I try to use apache as a echo server for telnet.

reading https://httpd.apache.org/docs/2.4/mod/mod_echo.html
"It provides a simple echo server. Telnet to it and type stuff, and it
will echo it."

What I did : # a2enmod echo
# apache2ctl -M  --> see : echo_module (shared)
# edit /etc/apache2/global.conf --> add : ProtocolEcho On
# apache2ctl restart

Test:
# telnet localhost --> connection refused
# telnet localhost 80 --> ... <h1>Bad request!</h1> ...

The firewall is disabled.

Reading the manual and google I am not able to correctly configure this.
Can you assist me or give a hint?
Anthony


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: mod_echo configuration

Marion & Christophe JAILLET
Le 28/03/2019 à 15:37, anthony a écrit :

> Hello,
>
> I am new on this mailing list and I hope to find an answer on my
> apache2 configuration problem.
>
> My OS : Linux openSUSE 15.2 64 bit
> Apache : apache2 2.4.33 standard install
>    browser url : local host --> It works!
>
> I try to use apache as a echo server for telnet.
>
> reading https://httpd.apache.org/docs/2.4/mod/mod_echo.html
> "It provides a simple echo server. Telnet to it and type stuff, and it
> will echo it."
>
> What I did : # a2enmod echo
> # apache2ctl -M  --> see : echo_module (shared)
> # edit /etc/apache2/global.conf --> add : ProtocolEcho On
> # apache2ctl restart
>
> Test:
> # telnet localhost --> connection refused
> # telnet localhost 80 --> ... <h1>Bad request!</h1> ...
>
> The firewall is disabled.
>
> Reading the manual and google I am not able to correctly configure this.
> Can you assist me or give a hint?
> Anthony

Hi

just tested locally and it works as expected with:
    telnet localhost 80

When ProtocolEcho is not defined, I get the bad request you get.


What system are you running?
What httpd version are you using?

Base on https://wiki.apache.org/httpd/DistrosDefaultLayout, using
/etc/apache2/global.conf looks unusual.
Are you sure that it is loaded?
(an easy way to check is to write a bogus directive (ProtocolEchoXXXXX
On) and check if apache2ctl restart works or not)

CJ


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: mod_echo configuration

Marion & Christophe JAILLET
Just, for the records.

On 28/03/2019 19:46, Marion & Christophe JAILLET wrote:
Le 28/03/2019 à 15:37, anthony a écrit :
Hello,

I am new on this mailing list and I hope to find an answer on my apache2 configuration problem.

My OS : Linux openSUSE 15.2 64 bit
Apache : apache2 2.4.33 standard install
   browser url : local host --> It works!

I try to use apache as a echo server for telnet.

reading https://httpd.apache.org/docs/2.4/mod/mod_echo.html
"It provides a simple echo server. Telnet to it and type stuff, and it will echo it."

What I did : # a2enmod echo
# apache2ctl -M  --> see : echo_module (shared)
# edit /etc/apache2/global.conf --> add : ProtocolEcho On
# apache2ctl restart

Test:
# telnet localhost --> connection refused
# telnet localhost 80 --> ... <h1>Bad request!</h1> ...

The firewall is disabled.

Reading the manual and google I am not able to correctly configure this.
Can you assist me or give a hint?
Anthony

Hi

just tested locally and it works as expected with:
   telnet localhost 80

When ProtocolEcho is not defined, I get the bad request you get.


What system are you running?
What httpd version are you using?

Base on https://wiki.apache.org/httpd/DistrosDefaultLayout, using /etc/apache2/global.conf looks unusual.
Are you sure that it is loaded?
(an easy way to check is to write a bogus directive (ProtocolEchoXXXXX On) and check if apache2ctl restart works or not)

CJ


Dear Cristophe,

thanks for your answer, it was spot-on. I use openSUSE 15.2 which uses systemd to initialize. In the file /etc/apache2/httpd.conf is mentioned that loadmodule.conf and global.conf are not loaded in systems started via systemd. Putting the command 'ProtocolEcho On' in httpd.conf gave me the expected behaviour. Thanks.

Anthony