[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Router's Public IP Address



I fixed it

Major Changes
1. Change final elif to an else because no RFC states that NAT can't be
used with non-private IP ranges. Non-private IPs are just required to be
globally unique.
2. Added check for default route and used that to make sure it only gets
the IP address for the external interface of the machine. Previously the
script ran odly on machines with multiple interfaces.
3. Various cosmetic changes.

Attachment: getrouterip
Description: Binary data