map internal ip

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

 



I have the following config:

(public ip)
eth0
Firewall
eth1 (150.50.53.4)
|
|
|
148.145.133.1 (vpn router)
|
|
150.50.57.0/24 
(LAN, including a server with 150.50.57.2)

*Class 150.50.57.0/24 is routed to 148.245.164.1

I want that when people(from eth1 lan) goes to 150.50.53.5, be
redirected to 150.50.57.2.

I tried:

iptables -t nat -A PREROUTING 150.50.53.5 -j DNAT --to-destination
150.50.57.2


But doesn't seem to be working. Any idea if it is possible and how to do
it?


Omar



[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