Results 1 to 3 of 3

Thread: What happens when the WAN IP address changes?

  1. #1

    What happens when the WAN IP address changes?

    This is merely a theoretical question--my knowledge of linux and iptables is not great enough to tell whether or not this would happen, and my knowledge of the router is not great enough to tell how the router would react.

    Say when my router renews its WAN IP address, that IP address changes... Would that mess up the iptables entries that had been created using the previous IP address? Would the router just reboot? I'm curious what would happen here, as I use post-firewall ...

    What I mean is, would entries like this be affected, or somehow changed to match the new IP address?:
    iptables -A PREROUTING -p tcp -m tcp -d $2 --dport 5900 -j DNAT --to 192.168.1.10

    If the router doesn't reboot, what can I do to make sure the entries are "refreshed" to match the new IP address?
    Last edited by tomilius; 20-03-2005 at 00:12.

  2. #2
    Join Date
    May 2004
    Location
    Den haag, Netherlands
    Posts
    23
    Quote Originally Posted by tomilius
    This is merely a theoretical question--my knowledge of linux and iptables is not great enough to tell whether or not this would happen, and my knowledge of the router is not great enough to tell how the router would react.

    Say when my router renews its WAN IP address, that IP address changes... Would that mess up the iptables entries that had been created using the previous IP address? Would the router just reboot? I'm curious what would happen here, as I use post-firewall ...

    What I mean is, would entries like this be affected, or somehow changed to match the new IP address?:
    iptables -A PREROUTING -p tcp -m tcp -d $2 --dport 5900 -j DNAT --to 192.168.1.10

    If the router doesn't reboot, what can I do to make sure the entries are "refreshed" to match the new IP address?
    In my situation on the moment the ip is renewed most(default and nat?) of the iptables are flushed and rebuilt just like the first time you boot. So if you have a rule like that in your post-firewall script it should work just fine.

  3. #3
    OK, thanks. Just making sure.

Similar Threads

  1. How to get the routers IP-address?
    By Sparre in forum WL-500g Q&A
    Replies: 5
    Last Post: 18-06-2005, 08:33
  2. IP ADDRESS Blocking
    By ktcarlin in forum WL-500g Q&A
    Replies: 0
    Last Post: 15-06-2005, 06:27
  3. Can't get an IP address
    By Troubled in forum WL-500g Q&A
    Replies: 1
    Last Post: 28-05-2005, 09:47
  4. IP Address 176.244.215.42 on eth1
    By Medalha in forum WL-500g Q&A
    Replies: 0
    Last Post: 04-04-2005, 00:50
  5. number of mac address
    By sup in forum WL-500g Q&A
    Replies: 3
    Last Post: 17-01-2005, 14:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •