Re: iptables rule doesn't work

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

 



On Sat, July 8, 2006 22:47, Antonio Di Bacco wrote:
> I receive on an interface (eth0, NOARP , ipaddr: 192.168.0.20 ) a tcp packet
> in this way (I have dumped it with tcpdump):
>
> SRC: 192.168.0.21:6000
> DST: 192.168.0.21:80
>
>
> I have an iptables rule:
>
>
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT
> --to-destination 192.168.0.20:80
>
>
> Why my web server listening on eth0 doesn't receive it?

- Did you check routing of both firewall and server?
- Do you have a FORWARD rule/policy that allows this?
- Did you enable IP forwarding?
(echo 1 > /proc/sys/net/ipv4/ip_forward)


Gr,
Rob





[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