由 const 在 12-22-2003 09:07 发表:
地址转换请教??
我想做个地址转换
对外就只一个ip一个域名
然后映射到内网不同server上
如192.168.0.1www,192.168.0.2ftp,192.168.0.3mail etc.
搜索地址转换好像没我想要的
搜索nat不允许字符数不够
请教各路大虾用什么做好??
加咱qq:51021899
除了侬在线时,俺不在外
其余时间偶都在线
CEII:700
SDR:128
i815E
EMC:15'
RH9+WIN2K_ADV
由 Snoopy 在 12-22-2003 09:45 发表:
iptables -t nat -A PREROUTING -d 192.168.0.0/24 -p tcp --dport 80 -j DNAT --to 192.168.0.1:80
iptables -t nat -A POSTROUTING -s 自己ip -p tcp --dport 80 -j SNAT --to 192.168.0.1:80
想对改一下就可以了,,,,
iptables -A FORWARD -p tcp --dport 80 -j ACCEPT
不对的请兄弟改下,正在学..........
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 xjdong 在 12-22-2003 09:45 发表:
回复: 地址转换请教??
> quote:
>
> * * *
>
> 最初由 const 发表
>
> **我想做个地址转换
>
> 对外就只一个ip一个域名
>
> 然后映射到内网不同server上
>
> 如192.168.0.1www,192.168.0.2ftp,192.168.0.3mail etc.<br / **