Quote:
Originally Posted by guru4hosting
I guess you are trying to access the yahoo API from the server and yahoo server see connections origination from the server main IP, no matter what his domain IP is.
I think you can use iptables NAT rules to override the source ip.
http://netfilter.org/documentation/H...T-HOWTO-6.html
|
Exactly! I am facing that problem.
I have checked your link and I think following command would work
## Change source addresses to 1.2.3.4.
# iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 1.2.3.4
But problem is that I want to change source ip of a single domain (site) only while I host couple of more sites on same server. I don't want to change source ip of all of them.