To get tcp header alone in log
----------------------------------------------------------------------------------------[
]# vi /etc/sysconfig/iptables
---added the following 2 lines..
-A INPUT -j LOG --log-ip-options
-A INPUT -j LOG --log-tcp-options
]# vi /etc/syslog.conf
---added the following 1 line
kern.warning /var/log/iptables.log # for getting IPTables' log in iptables.log file
]# /etc/init.d/syslog restart
]# service iptables restart
]# tail -f /var/log/iptables.log
# du -sh /var/log/iptables.log
Here is the problem...
As i did it in a server , the file size is keep on increasing like anything..
----------------------------------------it's working fine.------------------------------------------------]
But I just need TCP header alone . Not all the protocols...
Is there any way..??
Here i used iptables... to get Log..
You can suggest me any other way..
Anything acceptable. My actual need is to know who are all connecting my server using TCP..
.
.