Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-12-20 (7 days ago) | Not enough user ratings | Total: 19 This week: 19 | All time: 11,359 This week: 1 |
Version | License | PHP version | Categories | |||
noip-iptables-sync 1.0.0 | Custom (specified... | 5 | Networking, PHP 5, Unix, Systems admi..., G... |
Description | Author | |
This package can update network routing to use NoIP with iptables. |
A litle PHP script utility for renew IPTABLES firewall rules.
PHP-CLI, SQLITE3 and PHP-SQLITE3
apt install php-cli sqlite3 php-sqlite3
Copy the updateNoIp.php to /usr/local/bin/ or another directory do you want.
You can use in CRONTAB or Systemd-timer
In CRONTAB with root
contrab -e
and than add this line if you copied the script to /usr/local/bin/
CRONTAB:
/1 * /usr/local/bin/updateNoIp.php
SYSTEMD-TIMER: - copy update-noip.server and update-noip.timer to /lib/systemd/system - create a link into /etc/systemd/system/timers.target.wants/ - run systemctl daemon-reload command
You can see with systemctl list-timers command
The script will create the SQLite database and then you must insert your noip hostname and external ip into this database.
You also edit your iptables rules into script and in your iptables firewall.
In script there are those iptables rules. Change for your needs.
system('iptables -t nat -D PREROUTING -p tcp --dport 5432 -s ' . $row['ip'] . ' -j DNAT --to-dest 192.168.121.250');
system('iptables -t nat -A PREROUTING -p tcp --dport 5432 -s ' . $ip . ' -j DNAT --to-dest 192.168.121.250');
Please see CONTRIBUTING for details.
Thank you
The MIT License (MIT). Please see License File for more information.
Files (6) |
File | Role | Description |
---|---|---|
CONTRIBUTING.md | Data | Auxiliary data |
LICENSE | Lic. | License text |
README.md | Doc. | Documentation |
update-noip.service | Data | Auxiliary data |
update-noip.timer | Data | Auxiliary data |
updateNoIp.php | Example | Example script |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.