* smtp @ 2004-05-14 11:17 azeem ahmad 2004-05-14 11:37 ` smtp Gavin Hamill 2004-05-14 12:46 ` smtp Antony Stone 0 siblings, 2 replies; 6+ messages in thread From: azeem ahmad @ 2004-05-14 11:17 UTC (permalink / raw) To: netfilter hi all i m havingg a continous upload on port 25 but i m unable to know which ip from my network is uploading on port 25. i saw on iptraf that some one is continously uploading on 25. the hardware addresss that iptraf is showing isnt really on my LAN but the traffic is coming from my LAN how can i find out the real hardware address or ip of the machine uploading Regards Azeem _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: smtp 2004-05-14 11:17 smtp azeem ahmad @ 2004-05-14 11:37 ` Gavin Hamill 2004-06-07 17:29 ` ip_conntrack_ftp and port forwarding Erick Sanz 2004-05-14 12:46 ` smtp Antony Stone 1 sibling, 1 reply; 6+ messages in thread From: Gavin Hamill @ 2004-05-14 11:37 UTC (permalink / raw) To: netfilter On Friday 14 May 2004 12:17, azeem ahmad wrote: > hi all > i m havingg a continous upload on port 25 but i m unable to know which ip > from my network is uploading on port 25. i saw on iptraf that some one is > continously uploading on 25. the hardware addresss that iptraf is showing > isnt really on my LAN but the traffic is coming from my LAN > how can i find out the real hardware address or ip of the machine uploading iptraf is a useful tool for some purposes, but here tcpdump would be more appropriate. Install it, and try tcpdump -n port 25 You may need to specify the eth device with "-i eth0" etc. It should be obvious very quickly which address on your LAN is generating the traffic (the machine will almost certainly be a Windows box with a virus). From then, you can issue $ iptables -A FORWARD -p tcp -i ethX -s X.X.X.X --dport 25 -j DROP And this will immediately stop all traffic from IP address X.X.X.X coming *IN* to ethX on your firewall. From there, remove the virus and then undo the above line. (replace -A with -D) Cheers, Gavin. ^ permalink raw reply [flat|nested] 6+ messages in thread
* ip_conntrack_ftp and port forwarding 2004-05-14 11:37 ` smtp Gavin Hamill @ 2004-06-07 17:29 ` Erick Sanz 2004-06-08 18:08 ` RESEND: " Erick Sanz 0 siblings, 1 reply; 6+ messages in thread From: Erick Sanz @ 2004-06-07 17:29 UTC (permalink / raw) To: netfilter All, I have a firewall at home protecting a web server (personal stuff); I would like to add ftp capabilities in order to upload files from work, so I can work home. ASCII diagram: DSL -- Firewall -- Web server / FTP server My current rules to allow http are (no other rules included): iptables -t nat -A PREROUTING -p tcp -d 172.16.1.34 --dport 80 -j DNAT \ --to 192.168.0.20 iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE iptables -A FORWARD -i eth0 -p tcp -d 192.168.0.20 --dport 80 -m state \ --state NEW,ESTABLISHED,RELATED -j ACCEPT iptables -A FORWARD -i eth1 -p tcp -s 192.168.0.20 --source-port 80 -j \ ACCEPT I know I need to use ip_conntrack_ftp; however I am not sure if it allows port forwarding... Really basic question, but I was wondering what everybody is doing... Best regards, Erick This email message has been scanned for viruses. ^ permalink raw reply [flat|nested] 6+ messages in thread
* RESEND: ip_conntrack_ftp and port forwarding 2004-06-07 17:29 ` ip_conntrack_ftp and port forwarding Erick Sanz @ 2004-06-08 18:08 ` Erick Sanz 2004-06-10 3:01 ` Mark E. Donaldson 0 siblings, 1 reply; 6+ messages in thread From: Erick Sanz @ 2004-06-08 18:08 UTC (permalink / raw) To: netfilter All, I sent the bellow message yesterday, but got no answers. I am sure it did not get there; if it did, sorry for the repost. The question is, can I have an internal FTP server? the firewall would have to FORWARD the connections to port 21, and then ip_conntrack_ftp would have to allow the rest of the communication in... Does this work? For more information, please read bellow message... is there anybody using it? Best regards, Erick > -----Original Message----- > From: netfilter-admin@lists.netfilter.org > [mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Erick Sanz > Sent: Monday, June 07, 2004 12:30 PM > To: netfilter@lists.netfilter.org > Subject: ip_conntrack_ftp and port forwarding > > > > All, > > I have a firewall at home protecting a web server (personal > stuff); I would like to add ftp capabilities in order to upload > files from work, so I can work home. > > ASCII diagram: > > > DSL -- Firewall -- Web server / FTP server > > > My current rules to allow http are (no other rules included): > > > iptables -t nat -A PREROUTING -p tcp -d 172.16.1.34 --dport 80 -j DNAT \ > --to 192.168.0.20 > iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE > > iptables -A FORWARD -i eth0 -p tcp -d 192.168.0.20 --dport 80 -m state \ > --state NEW,ESTABLISHED,RELATED -j ACCEPT > iptables -A FORWARD -i eth1 -p tcp -s 192.168.0.20 --source-port 80 -j \ > ACCEPT > > I know I need to use ip_conntrack_ftp; however I am not sure if > it allows port forwarding... > > Really basic question, but I was wondering what everybody > is doing... > > Best regards, > Erick > > > This email message has been scanned for viruses. > > > > > This email message has been scanned for viruses. > This email message has been scanned for viruses. ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: RESEND: ip_conntrack_ftp and port forwarding 2004-06-08 18:08 ` RESEND: " Erick Sanz @ 2004-06-10 3:01 ` Mark E. Donaldson 0 siblings, 0 replies; 6+ messages in thread From: Mark E. Donaldson @ 2004-06-10 3:01 UTC (permalink / raw) To: 'Erick Sanz', netfilter -----Original Message----- From: netfilter-admin@lists.netfilter.org [mailto:netfilter-admin@lists.netfilter.org] On Behalf Of Erick Sanz Sent: Tuesday, June 08, 2004 11:08 AM To: netfilter@lists.netfilter.org Subject: RESEND: ip_conntrack_ftp and port forwarding All, I sent the bellow message yesterday, but got no answers. I am sure it did not get there; if it did, sorry for the repost. The question is, can I have an internal FTP server? the firewall would have to FORWARD the connections to port 21, and then ip_conntrack_ftp would have to allow the rest of the communication in... Does this work? For more information, please read bellow message... is there anybody using it? Best regards, Erick > -----Original Message----- > From: netfilter-admin@lists.netfilter.org > [mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Erick Sanz > Sent: Monday, June 07, 2004 12:30 PM > To: netfilter@lists.netfilter.org > Subject: ip_conntrack_ftp and port forwarding > > > > All, > > I have a firewall at home protecting a web server (personal stuff); I > would like to add ftp capabilities in order to upload files from work, > so I can work home. > > ASCII diagram: > > > DSL -- Firewall -- Web server / FTP server > > > My current rules to allow http are (no other rules included): > > > iptables -t nat -A PREROUTING -p tcp -d 172.16.1.34 --dport 80 -j DNAT \ > --to 192.168.0.20 > iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE > > iptables -A FORWARD -i eth0 -p tcp -d 192.168.0.20 --dport 80 -m state \ > --state NEW,ESTABLISHED,RELATED -j ACCEPT iptables -A FORWARD -i eth1 > -p tcp -s 192.168.0.20 --source-port 80 -j \ > ACCEPT > > I know I need to use ip_conntrack_ftp; however I am not sure if it > allows port forwarding... > > Really basic question, but I was wondering what everybody is doing... > > Best regards, > Erick > > > This email message has been scanned for viruses. > > > > > This email message has been scanned for viruses. > You seem to have most of this correct, but don't make it more difficult than it really is. You basically only need to do three things: 1. DNAT the packets to your FTP server 2. Accept the DNATted packets in the FORWARD chain 3. Let connection tracking handle the rest By the way: what's with the port 80? ######################################################## This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. postmaster@bandwidthco.com MailScanner at bandwidthco.com is for your absolute protection. ######################################################## ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: smtp 2004-05-14 11:17 smtp azeem ahmad 2004-05-14 11:37 ` smtp Gavin Hamill @ 2004-05-14 12:46 ` Antony Stone 1 sibling, 0 replies; 6+ messages in thread From: Antony Stone @ 2004-05-14 12:46 UTC (permalink / raw) To: netfilter On Friday 14 May 2004 12:17 pm, azeem ahmad wrote: > hi all > i m havingg a continous upload on port 25 but i m unable to know which ip > from my network is uploading on port 25. i saw on iptraf that some one is > continously uploading on 25. the hardware addresss that iptraf is showing > isnt really on my LAN but the traffic is coming from my LAN > how can i find out the real hardware address or ip of the machine uploading Plug a packet sniffer (eg: ethereal) into the link using a hub? Antony. -- Most people have more than the average number of legs. Please reply to the list; please don't CC me. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-06-10 3:01 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-05-14 11:17 smtp azeem ahmad 2004-05-14 11:37 ` smtp Gavin Hamill 2004-06-07 17:29 ` ip_conntrack_ftp and port forwarding Erick Sanz 2004-06-08 18:08 ` RESEND: " Erick Sanz 2004-06-10 3:01 ` Mark E. Donaldson 2004-05-14 12:46 ` smtp Antony Stone
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox