Quick question for you all..
I do an ./add_ip name ip_addr
It seems to run and the last step is it displays the entered IP address in iptables..
But when I go back and look at the name.iptables file instead of the IPAdress I see all 1's
root@pbx1:~ $ cat namedipa.iptables
1.1.1.1 1.1.1.1
Which is not right in my mind - It certainly does not look like the file created with add-fqdn that has the FQDN and the current address in it ..
root@pbx1:~ $ cat dyndnsa.iptables
mynsa.dyndns.org 192.168.10.1
The root directly has both add-ip and an app-ip.orig here is the top few lines of a diff.
I do an ./add_ip name ip_addr
It seems to run and the last step is it displays the entered IP address in iptables..
But when I go back and look at the name.iptables file instead of the IPAdress I see all 1's
root@pbx1:~ $ cat namedipa.iptables
1.1.1.1 1.1.1.1
Which is not right in my mind - It certainly does not look like the file created with add-fqdn that has the FQDN and the current address in it ..
root@pbx1:~ $ cat dyndnsa.iptables
mynsa.dyndns.org 192.168.10.1
The root directly has both add-ip and an app-ip.orig here is the top few lines of a diff.
Code:
root@pbx1:~ $ diff add-ip app-ip.orig
3c3
< # add-ip (c) Copyright 2012-2017, Ward Mundy & Associates LLC. All Rights Reserved.
---
> # add-ip (c) Copyright 2012-2014, Ward Mundy & Associates LLC. All Rights Reserved.
5c5
< # add-ip 4.0U is licensed under the GPL2 license
---
> # add-ip 1.4U is licensed under the GPL2 license
8a9
> # For additional information, contact us: http://pbxinaflash.com/about/comment.php
40c41
< echo "add-ip (c) Copyright 2012-2017, Ward Mundy & Associates, LLC"
---
> echo "add-ip (c) Copyright 2012-2014, Ward Mundy & Associates, LLC"
42,43c43,45
< echo "This script opens access to your server from: $2"
< echo "Activity from this address may damage your server!"
---