|
发表于 2003-10-10 19:19:29
|
显示全部楼层
coyote最糟糕的就是没有文档,好不容易找到一个,原来是1.4版的,老掉牙了。
你那句好象应该在后面加dns三个字母吧。看coyote论坛上的:
The main difference between them (from the user's perspective) is that you can do things with "port" that you can't do with "auto", but "auto" is simpler to specify.
The "dns" parameter allows you to use the =external= IP address and domain name of (for example) your web server (e.g. 66.93.100.45 or www.mydomain.com) from your =internal= network. Without this, you'd have to use the internal IP address of the machine (e.g. 192.168.0.3) from your LAN, which is a nuisance (especially with virtual hosts).
How to set up port-forwarding depends a little on what services you're trying to make available, so without know that I can't be very specific in how to do it. If you're using Coyote 2.02 (made with either version 2.02 of the Linux scripts or 2.2.3 of the Windows wizard, new this week), there should be a list of sample rules under option 6 on the console menu. If you want to forward (for example) the HTTP port to a web server, remove the "#" that disables that line, change the IP address that's there to your server's internal address, Ctrl-S Ctrl-Q to get back to the menu, write the config to floppy, and reboot.
If you're using an earlier release of Coyote, I'd recommend downloading the latest; it's a little easier to work with (and also fixes a possible security flaw).
不过我些我还真没看懂:(我还是没搞明白auto和port有啥区别,dns也只知道加比不加好。
要不就用iptables自带的功能,嘿嘿,我就是这么搞定三网卡的。coyote好就好在用的iptables.
iptables -t nat -A PREROUTING -d 61.x.x.x -p tcp --dport 21 -j DNAT --to 192.168.2.3
iptables -t nat -A POSTROUTING -d 192.168.2.3 --dport 21 -j SNAT --to 192.168.2.1
如果这样还不行,把20端口也打开试试。
以上方法,并未测试,嘿嘿 |
|