🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
6 messages
6 total messages Started by Anonymous Tue, 23 Jun 2015 19:55
remailer's iptables firewall question
#274986
Author: Anonymous
Date: Tue, 23 Jun 2015 19:55
16 lines
1261 bytes
  I have these -m string searches in my iptables

iptables -I INPUT 1 -p tcp --source-port 80 -m string --string 
"php" --algo bm -j DROP iptables -I INPUT 2 -p tcp --source-port 80 
-m string --string "vtigercrm" --algo bm -j DROP

yet these intrusions are still getting through

119.81.224.210 - - [23/Jun/2015:08:47:27 -0500]
 "GET /vtigercrm/vtigerservice.php HTTP/1.1" 200 4324 "-" 
"curl/7.29.0"
119.81.224.210 - - [23/Jun/2015:08:47:27 -0500]
 "GET /vtigercrm/vtiger.php HTTP/1.1" 200 4324 "-" "curl/7.29.0"

I would think that the "php" or "vtigercrm" string entries would 
have dropped them from getting in.
Re: remailer's iptables firewall question
#274987
Author: elvis-85503
Date: Tue, 23 Jun 2015 20:18
13 lines
1394 bytes
> iptables -I INPUT 1 -p tcp --source-port 80 -m string --string 
> "php" --algo bm -j DROP iptables -I INPUT 2 -p tcp --source-port 80 
> -m string --string "vtigercrm" --algo bm -j DROP
>
> yet these intrusions are still getting through
>
> 119.81.224.210 - - [23/Jun/2015:08:47:27 -0500]
>  "GET /vtigercrm/vtigerservice.php HTTP/1.1" 200 4324 "-" 
> "curl/7.29.0"
> 119.81.224.210 - - [23/Jun/2015:08:47:27 -0500]
>  "GET /vtigercrm/vtiger.php HTTP/1.1" 200 4324 "-" "curl/7.29.0"

Did you mean destination port 80?
Re: remailer's iptables firewall question
#274993
Author: Nomen Nescio
Date: Tue, 23 Jun 2015 20:57
5 lines
826 bytes
Anonymous <nobody@remailer.paranoici.org> wrote:

> yet these intrusions are still getting through

Shut up, Eelbash. HTTP requests are not intrusions.
Re: remailer's iptables firewall question
#274988
Author: Jack Ryan
Date: Tue, 23 Jun 2015 21:55
17 lines
1405 bytes
>> iptables -I INPUT 1 -p tcp --source-port 80 -m string --string
>> "php" --algo bm -j DROP iptables -I INPUT 2 -p tcp --source-port 80
>> -m string --string "vtigercrm" --algo bm -j DROP
>>
>> yet these intrusions are still getting through
>>
>>  "GET /vtigercrm/vtigerservice.php HTTP/1.1" 200 4324 "-"
>> "curl/7.29.0"
>>  "GET /vtigercrm/vtiger.php HTTP/1.1" 200 4324 "-" "curl/7.29.0"
>
> Did you mean destination port 80?

  That is what I used to have, but someone said that it was wrong 
because the source (other computer) was trying to come into my 
server on port 80.  If it was someone trying to go from my server 
to someone else (destination port 80), that would be wrong.  Which 
is correct?
Re: remailer's iptables firewall question
#274997
Author: Anonymous
Date: Wed, 24 Jun 2015 00:41
22 lines
1999 bytes
On Tue, 23 Jun 2015 17:55:53 -0400 (EDT), Jack Ryan <noreply@remailer.cpunk.us> wrote:

>>> iptables -I INPUT 1 -p tcp --source-port 80 -m string --string
>>> "php" --algo bm -j DROP iptables -I INPUT 2 -p tcp --source-port 80
>>> -m string --string "vtigercrm" --algo bm -j DROP
>>>
>>> yet these intrusions are still getting through
>>>
>>>  "GET /vtigercrm/vtigerservice.php HTTP/1.1" 200 4324 "-"
>>> "curl/7.29.0"
>>>  "GET /vtigercrm/vtiger.php HTTP/1.1" 200 4324 "-" "curl/7.29.0"
>>
>> Did you mean destination port 80?
>
>  That is what I used to have, but someone said that it was wrong 
>because the source (other computer) was trying to come into my 
>server on port 80.  If it was someone trying to go from my server 
>to someone else (destination port 80), that would be wrong.  Which 
>is correct?

Destination is correct. In your use case it is impossible to predict the client's source port, therefore you can't write a rule that
way.
Re: remailer's iptables firewall question
#275010
Author: Anonymous
Date: Wed, 24 Jun 2015 14:50
25 lines
1752 bytes
> On Tue, 23 Jun 2015 17:55:53 -0400 (EDT), Jack Ryan <noreply@remailer.cpunk.us> wrote:
>
>
>>>> iptables -I INPUT 1 -p tcp --source-port 80 -m string --string
>>>> "php" --algo bm -j DROP iptables -I INPUT 2 -p tcp --source-port 80
>>>> -m string --string "vtigercrm" --algo bm -j DROP
>>>>
>>>> yet these intrusions are still getting through
>>>>
>>>>  "GET /vtigercrm/vtigerservice.php HTTP/1.1" 200 4324 "-"
>>>> "curl/7.29.0"
>>>>  "GET /vtigercrm/vtiger.php HTTP/1.1" 200 4324 "-" "curl/7.29.0"
>>>
>>> Did you mean destination port 80?
>>
>>  That is what I used to have, but someone said that it was wrong
>> because the source (other computer) was trying to come into my
>> server on port 80.  If it was someone trying to go from my server
>> to someone else (destination port 80), that would be wrong.  Which
>> is correct?
>
> Destination is correct. In your use case it is impossible to predict the client's source port, therefore you can't write a rule that
> way.

  Definitely misled. Working now with dport. Thank all.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads