iptables and redirects

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

 



Hello!

I have problems getting PREROUTING to work.
I defined to simple rules:

iptables -t nat -A PREROUTING -i $loc -p TCP --sport 1024: \
                  --dport 80  -j DNAT --to 192.168.1.3:3128
iptables -t nat -A PREROUTING -i $loc -p TCP --sport 1024: \
                  --dport 110 -j DNAT --to 192.168.1.75:110

The connection with Netscape accesing the firewall-host times out.
Squid is configured as accelerator to 192.168.1.3.

A telnet to the firewall-host on port 110 (mailseerver) times out too.
Tried to add forwarding:

iptables -A FORWARD -p TCP -d 192.168.1.75  --dport 3128 -j ACCEPT
iptables -A FORWARD -p TCP -d 192.168.1.75  --dport 110 -j ACCEPT

No luck. What am I missing? No entries in the logs, nothing.
Just found one:
kernel: host 192.168.1.3/if2 ignores redirects for 192.168.1.75 to 192.168.1.75

Is this a kernel thing? As long as I don't redirect to another host
iptables are working.

Can someone help? Absolutly frustrated....

-- 

  Andreas Meyer

Object Class   Common Name   userPassword
posixAccount   andreas       {SSHA}hpyqObx1/BXbKFgXoqCayoGsvIgPYiVc


[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