How to create very simple Linux Gateway
Some administrator doesn’t realize that to have a pc gateway is very usefull.
They can manage the connection if they have 2 or more connections to be load balanced or just automatic backup connection.
The principal of a gateway is every packet and requested through the ethernet card are will be forwarded.
Check your ip address first:
# ifconfig
eth0 […]
PHP code Vs Firewall
Php code : file_get_contents , fsockopen couldnt compiled
This error log was generated from httpd log.
[error] [client 192.168.1.1] PHP Warning: file_get_contents() [<a href=’function.file-get-contents’>function.file-get-contents</a>]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /var/www/html/search/test.php on line 2
[error] [client 192.168.1.1] PHP Warning: file_get_contents(http://www.google.com) [<a href=’function.file-get-contents’>function.file-get-contents</a>]: failed to open stream: Connection refused in /var/www/html/search/park.php on line 2
The Solution is […]