Redirecting traffic to my ftp site?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings

My firewall / router has two interfaces.
bond0 == internal
eth0 == external

I have an ftp server setup on the same box. If anyone on the internal network 
tries to access http 80 or ftp 20:21 I would like to route them regardless of 
the url entered to my ftp site.
 
:} "evil I know"

iptables -t nat -A PREROUTING -i bond0 -p tcp --dport 80 -j DNAT \
--to-dest 192.168.0.1 (ftp??)

Could I use iptables for that?
If how should that rule look?

Thanks in advance,

Oh and by the way there is method in the madness ;)



-- 
Chadley Wilson
Redhat Certified Technician 
Cert Number: 603004708291270
Pinnacle Micro
Manufacturers of Proline Computers
====================================
Exercise freedom, Use LINUX
=====================================



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux