Networking Forums

Networking Forums > Computer Networking > Linux Networking > IPtables web interface?? / Life with a dynamic ip...

Reply
Thread Tools Display Modes

IPtables web interface?? / Life with a dynamic ip...

 
 
joshandlinds@gmail.com
Guest
Posts: n/a

 
      02-16-2005, 10:39 PM
I ssh to my works' webservers. However, I have a dynamic ip at home and
have to constantly add my new ip address to the iptables. Is there a
easy way around this, or is there some sort of backend webscript out
there for adding ip via a web interface? Any direction or help is
appriciated.

Thanks in advance,

Josh

 
Reply With Quote
 
 
 
 
Aussie Fred
Guest
Posts: n/a

 
      02-16-2005, 11:05 PM
(E-Mail Removed) wrote:

> I ssh to my works' webservers. However, I have a dynamic ip at home and
> have to constantly add my new ip address to the iptables. Is there a
> easy way around this, or is there some sort of backend webscript out
> there for adding ip via a web interface? Any direction or help is
> appriciated.
>
> Thanks in advance,
>
> Josh


Get yourself an account with a dynamic IP/hostname service for your home
account (eg dyndns) [www.myhomecomputer.dyndns.org] and set up your home
system so it updates the service when the IP is changed

On the work computer run a cron job every 10 minutes to check the IP for
www.myhomecomputer.dyndns.org . If it has changed re-run iptables with the
new IP address.



 
Reply With Quote
 
J. Stewart
Guest
Posts: n/a

 
      02-16-2005, 11:16 PM
Do you know if there's a sample script out there that would do this?

 
Reply With Quote
 
roza9000
Guest
Posts: n/a

 
      02-17-2005, 10:40 PM
Robert L. Ziegler, in Linux Firewalls, 2nd ed., p.178, mentions that...

"One of the configuration parameters that you can specify in
/etc/pump.conf is the path and name of an executable script that pump
will run when it recieves an IP address and again at each lease
renewal."

One could imagine an executable script that contains the iptables -R
command for changing iptables every time the DHCP server issued a
lease, although I'm not familiar with the global variables needed.

regards,
roza9000

 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      02-19-2005, 12:59 PM
J. Stewart wrote:
> Do you know if there's a sample script out there that would do this?
>


There are several. Just go to the dyndns.org website
and follow the links for dyndns client.

There are several dynamic dns providers. Just Google
for 'dynamic dns' and pick your favourite (mine is dyndns.org).

--

Tauno Voipio
tauno voipio (at) iki fi

 
Reply With Quote
 
J. Stewart
Guest
Posts: n/a

 
      02-19-2005, 05:35 PM
I'm looking for a script that would update iptables when the ip of the
dyndns account changes.

 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      02-19-2005, 06:29 PM
J. Stewart wrote:
> I'm looking for a script that would update iptables when the ip of the
> dyndns account changes.
>


Did you follow the links at
<http://www.dyndns.org/services/dyndns/clients.html>?

Many of the clients are scripts.

Google for 'dyndns client script' gave about 45000 hits.
Go see.

--

Tauno Voipio
tauno voipio (at) iki fi

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPTables port forwarding with dynamic ip address David Linux Networking 2 06-06-2007 11:47 AM
iptables and interface state jqpx37 Linux Networking 2 08-20-2006 01:55 PM
Dynamic iptables Russ Linux Networking 0 06-15-2005 11:41 AM
iptables dynamic firewall Cronus Linux Networking 3 12-29-2003 06:44 PM
appropriate iptables rules for a website with dynamic DNS Wenjie Linux Networking 0 09-08-2003 11:37 AM



1 2 3 4 5 6 7 8 9 10 11