Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

i want to make transparent proxy with linux ( centos) ,

i want all incoming connection on port 1000 - 2000 on eth0 forward to eth1 on port 1000 - 2000 in transparent mode

i have 2 server 1- linux ( proxy server) 2- windows

i want protect my windows server with my linux server firewall also i must make transparent proxy with my linux server linux server have 2 interface one for public network an another for private network connected to windows server

so all incoming connection must connect to the linux server (at eth0 public network) first and after checking , must forward to the windows server on private network (with linux interface eth1 )

i can use squid for making transparent proxy but i dont know how i must config the squid for multi port because i want listen in more than 1000 ports

for example from port 1000 to 2000

anyone know how can i do ?

share|improve this question
1  
What specific problem are you trying to solve? (Why do you want to do this? - What is the end goal?) -- Context is important, and relevant. –  voretaq7 Sep 21 '12 at 17:23
    
i have 2 server 1- linux ( proxy server) 2- windows i want protect my windows server with my linux server firewall so i must make transparent proxy with my linux server –  ermya Sep 22 '12 at 7:42

1 Answer 1

iptables -A FORWARD -i eth0 -o eth1 -p tcp --dport 1000:2000 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0 -o eth1 -p tcp --dport 1000:2000 -j DNAT --to-destination 192.168.0.3
share|improve this answer
    
when i try to do that face me this error : iptables: Unknown error 4294967295 –  ermya Sep 26 '12 at 10:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.