Change outgoing HTTP source IP, possible?

ccto

Verified User
Joined
Feb 24, 2005
Messages
280
Location
Hong Kong
Hello All,

Some (normal/malicious) PHP scripts may send HTTP request to outside world.

I found that CBL will check any suspicious PHP malware, which tries to make HTTP connection to outside world.

Is it possible to adjust the output source IP address in iptables (or some wget/curl environment variables)?

For example,
server main IP is 1.2.3.4
Now we use 1.2.3.5 for PHP mail() source IP
and we would like to use 1.2.3.6 for PHP HTTP (or HTTPS) outgoing source IP

Thank you very much for your kind attention.

Regards
 
Back
Top