Recognize source ports in packets

George Moniodis ea99514 at di.uoa.gr
Tue Mar 27 23:51:01 EEST 2001


> "Pou" theleis na to blepeis afto? Eksigoumai: Theleis px. na ftiakseis
kapoio
> programma pou otan lambanei kapoia paketa na blepei apo pou einai? H mipos
> theleis genika otan ftanei ena paketo sto sistima sou na blepeis kapou
(px.
> sto syslog) apo pou irthe?
>
> Stin proti periptosi, otan kaneis accept(), kai pernas san defteri
parametro
> px. (struct sockaddr *) &address, otan ginei accepted, i address ginetai
> filled in me ta stoixeia tou remote host, opote gia na deis to remote
arkei
> na kaneis access to address.sin_port
>
> Stin defteri periptosi tha paikseis me to iptables, efoson exeis balei
> netfilter ston pirina, kai exeis balei episis logging target support,
opote
> grafontas "iptables -A INPUT -j LOG" tha blepeis sto syslog oxi mono to
> source port, alla kai 1002 alla.

Thelo na mporo na elegxo thn roh tvn paketvn se pou erxontai sto mixanima
kai na blepo apo poies portes erxontai oste na mporo na apofasiso se ti
traffic class anikoun (px conversational, background, multimedia ktl).
Profanos h deuterh periptosh einai auth pou me afora . To thema einai...to
netfilter einai arketo h xreiazomai kai alla programmata ?

Euxaristo

George Moniodis




More information about the Linux-greek-users mailing list