Re: Connecting from Internet to a system behind a NAT on a LAN possible ?

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

 



Yes. with DNAT in the PREROUTING chain in the nat table.


ex fowarding tcp/25 connectios an the public address into 192.168.1.2
in the LAN


echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -P FORWARD ACCEPT
iptables -t nat -A PREROUTING -s local.ip.from.theisp -p tcp --dport
25 -j DNAT --to 192.168.1.2:25


and it should be working.



Hello Marc,

Saturday, February 21, 2004, 9:26:20 AM, you wrote:

MR> A LAN is equipped with an Internet gateway using NAT to share the one IP
MR> address assigned by the ISP. The problem is to be able from Internet to
MR> connect to one of the interfaces located on the LAN (which local IP
MR> addresses are unknown from Internet).

MR> Can netfilter help to solve such a problem ?

MR> Many thanks for your help.

MR> Marc.



-- 
Best regards,
 Alexis                            mailto:alexis@xxxxxxxxxxxx



[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