Re: DNAT Problems

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

 



On Feb 28 2007 10:33, Rafael Paris wrote:
>
> I have been trying to have access to my internal mail server from
> internet but always get connection timed out.
> This is a very short set of rules being used for testing purposes with
> no success:
>
> iptables -t nat -A PREROUTING -p tcp -i ppp0 -d <external_fixed_ip>
> --dport 110 -j DNAT --to-destination <internal_ip:110>
> iptables -t nat -A PREROUTING -p tcp -i ppp0 -d <external_fixed_ip>
> --dport 25 -j DNAT --to-destination <internal_ip:25>
>
> iptables -t nat -A POSTROUTING -o ppp0 -j SNAT --to <external_fixed_ip>
>
> I'm using one ethernet device with my lan ip address and I can reach
            ^^^

There in lies your problem. All packets that came after the first one don't
even pass your box.



Jan
-- 


[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