由 Snoopy 在 05-23-2003 15:31 发表:
怎么这样使用iptables???
怎样将别人连我8000端口时转到61.144.*.*的3128的端口去啊??
用iptables怎么弄啊?
我要变成这样,,,别人代理我时,是连到外部网的一台代理机器上,,
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
由 dsj 在 05-24-2003 17:09 发表:
参考精华区
闲聊空间:
http://www.wonyen.net/bbs/mboard.asp
由 Snoopy 在 05-24-2003 19:10 发表:
我对这真的很模糊,,看了都不知道是不是关于我想要的,,
如果是我不需要的我没什么心情看下去啊,,,可以找个这文章我吗?
这个问题到现在很久都没办法解决!!麻烦你一下,,好吗??
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
由 khj99 在 05-24-2003 21:16 发表:
三步:
第一步是打开forward
echo "1">/proc/sys/net/ipv4/ip_forward
第二步打开MASQUERADE
/sbin/iptables -t nat -A POSTROUTING -j MASQUERADE
第三步做DNAT
/sbin/iptables -t nat -A PREROUTING -p tcp --dport 8000 -j DNAT --to-destination 61.144..:3128
是不是很复杂啊?
还有简单的方法,就是端口重定向。
下载kingate( http://www.kingate.net)
在conf/kingate.conf里面加上:
redirect 8000_61.144..:3128
就搞定了。
由 Snoopy 在 05-24-2003 21:52 发表:
/sbin/iptables -t nat -A POSTROUTING -j MASQUERADE
什么意思,可以解释一下吗???
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
由 Snoopy 在 05-25-2003 11:05 发表:
> quote:
>
> * * *
>
> 最初由 khj99 发表
>
> **三步:
>
> 第一步是打开forward
>
> echo "1">/proc/sys/net/ipv4/ip_forward
>
> 第二步打开MASQUERADE
>
> /sbin/iptables -t nat -A POSTROUTING -j MASQUERADE
>
> 第三步做DNAT
>
> /sbin/iptables -t nat -A PREROUTING -p tcp --dport 8000 -j DNAT --to-destination 61.144..:3128
>
> 是不是很复杂啊?
>
> 还有简单的方法,就是端口重定向。
>
> 下载kingate( http://www.kingate.net)
>
> 在conf/kingate.conf里面加上:
>
> redirect 8000_61.144..:3128
>
> 就搞定了。 **
>
> * * *
kingate就解决了我的问题,,谢谢
但我想iptables,怎么弄啊,上面你说的这两条语句,我打了都不行
你可以说得更详细点吗??
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
由 khj99 在 05-25-2003 12:21 发表:
一下子解释不清,
你man iptables 自已慢慢看,好多。
由 Snoopy 在 05-26-2003 10:10 发表:
man iptables看得懂我就不用来这里发贴了,别的命令我也可以用man了
上面它说的听不懂啊,,,,试了还是没结果啊?怎办?
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
由 Snoopy 在 06-05-2003 18:04 发表:
> quote:
>
> * * *
>
> 最初由 khj99 发表
>
> **三步:
>
> 第一步是打开forward
>
> echo "1">/proc/sys/net/ipv4/ip_forward
>
> 第二步打开MASQUERADE
>
> /sbin/iptables -t nat -A POSTROUTING -j MASQUERADE
>
> 第三步做DNAT
>
> /sbin/iptables -t nat -A PREROUTING -p tcp --dport 8000 -j DNAT --to-destination 61.144..:3128
>
> 是不是很复杂啊?
>
> 还有简单的方法,就是端口重定向。
>
> 下 **