在 /etc/sysctl.conf 中添加:
net.ipv4.ip_forward = 1
之后执行:
sysctl -p
假设 VPS 公网 IP 为 A,目标 VPS 公网 IP 为 B:
iptables -t nat -A PREROUTING -p tcp -d A -m tcp ! --dport 22 -j DNAT --to-destination B
iptables -t nat -A POSTROUTING -p tcp -d B -j MASQUERADE
iptables -t nat -A PREROUTING -p udp -d A -j DNAT --to-destination B
iptables -t nat -A POSTROUTING -p udp -d B -j MASQUERADE
这样可以把除 TCP 22 端口的请求权端口转发到 B。
Pingback: cheap androxal price in us
Pingback: ordering rifaximin generic is good
Pingback: meilleur prix kamagra
Pingback: Non perscription cheap enclomiphene
Pingback: discount dutasteride lowest cost pharmacy
Pingback: How to get flexeril cyclobenzaprine perscription
Pingback: buying gabapentin cost per tablet
Pingback: buy fildena buy in london
Pingback: buy itraconazole online france
Pingback: buy avodart cheap melbourne
Pingback: how to order xifaxan cheap no prescription
Pingback: obecný kamagra v jižní africe
dokojhhoxoiemqxiznykvrpluvygxz
hveiwwpqitlszqofdeogdxljsxysqx
lorvnktkurenunfjkhhddrsslmqkxt
Your article helped me a lot, is there any more related content? Thanks!
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://accounts.binance.info/en-NG/register?ref=YY80CKRN
iKxFaQiJfWIOyxJonCxFB
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://www.binance.info/register?ref=IHJUI7TF
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://www.binance.com/register?ref=IHJUI7TF
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Your article helped me a lot, is there any more related content? Thanks!