Dynamically receive IPs

Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default Dynamically receive IPs

    Hello,

    I have developed Firewall on FreeBSD 4.7. When any packet is received
    by Firewall, IP is search in relational database. If firewall finds ip
    in database then URL is blocked otherwise URL is allowed to user.

    Problem

    I have entered URL "www.yahoo.com" and its all possible IPs. But some
    time firewall is restricting URL and some time it is not. Then i found
    that firewall is taking diffrent ip which i have not entered in
    database.

    1) How can i receive all possible IPs of URL (like
    [url]www.google.com,www.yahoo.com)?[/url]
    2) Since IPs on Net are frequently change. How can i manage all this
    changes?

    Thanking You.
    Jignesh Guest

  2. Similar Questions and Discussions

    1. Can't download, just receive a red X
      I've tried and tried to download Flash Player and when I tell it to download and install all I get is a box with a red X. I am running Windows XP...
    2. receive e-mails
      hi guys I am looking for a way to read & download my e-mails from my pop3 account from another server by using ASP(vb) If you know anything about...
    3. how to receive e-mails
      hi guys I am looking for a way to read & download my e-mails from my pop3 account from another server by using ASP(vb) If you know anything about...
    4. socket receive
      Hi, all, I have several problems when i develop the socket receive code, i am using recv() to get the data with gcc on the linux platform. The...
    5. Receive data from a swf
      Hi I'm developing an application that uses info gathered by flash. This info is gathered from various sources and organized in a big array. After...
  3. #2

    Default Re: Dynamically receive IPs

    On 4 Jul 2003 23:45:43 -0700
    [email]tosc8@yahoo.co.in[/email] (Jignesh) wrote:
    > Hello,
    >
    > I have developed Firewall on FreeBSD 4.7. When any packet is received
    > by Firewall, IP is search in relational database. If firewall finds ip
    > in database then URL is blocked otherwise URL is allowed to user.
    >
    > Problem
    >
    > I have entered URL "www.yahoo.com" and its all possible IPs. But some
    > time firewall is restricting URL and some time it is not. Then i found
    > that firewall is taking diffrent ip which i have not entered in
    > database.
    >
    > 1) How can i receive all possible IPs of URL (like
    > [url]www.google.com,www.yahoo.com)?[/url]
    > 2) Since IPs on Net are frequently change. How can i manage all this
    > changes?
    >
    > Thanking You.
    [nick@beta ~]$ dig [url]www.yahoo.com[/url]

    ; <<>> DiG 9.2.2 <<>> [url]www.yahoo.com[/url]
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63418
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 9, AUTHORITY: 8, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;[url]www.yahoo.com[/url]. IN A

    ;; ANSWER SECTION:
    [url]www.yahoo.com[/url]. 1800 IN CNAME [url]www.yahoo.akadns.net[/url].
    [url]www.yahoo.akadns.net[/url]. 300 IN A 216.109.125.65
    [url]www.yahoo.akadns.net[/url]. 300 IN A 216.109.125.66
    [url]www.yahoo.akadns.net[/url]. 300 IN A 216.109.125.68
    [url]www.yahoo.akadns.net[/url]. 300 IN A 216.109.125.71
    [url]www.yahoo.akadns.net[/url]. 300 IN A 216.109.125.75
    [url]www.yahoo.akadns.net[/url]. 300 IN A 216.109.125.76
    [url]www.yahoo.akadns.net[/url]. 300 IN A 216.109.125.77
    [url]www.yahoo.akadns.net[/url]. 300 IN A 216.109.125.78

    ;; AUTHORITY SECTION:
    akadns.net. 35206 IN NS zc.akadns.net.
    akadns.net. 35206 IN NS zf.akadns.net.
    akadns.net. 35206 IN NS use2.akam.net.
    akadns.net. 35206 IN NS use4.akam.net.
    akadns.net. 35206 IN NS usw5.akam.net.
    akadns.net. 35206 IN NS asia3.akam.net.
    akadns.net. 35206 IN NS ns1-93.akam.net.
    akadns.net. 35206 IN NS ns1-159.akam.net.

    ;; Query time: 529 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Sat Jul 5 11:01:41 2003
    ;; MSG SIZE rcvd: 352



    You can use a resolver library (e.g. your system's one) for it. But this is not a solution to call a resolver on every packet. If all you want to do is blocking URLs, then install an HTTP proxy server like Squid which can block them very effectively.




    --

    Best regards,
    Nick
    (GPG Key ID: 4396B2D0, fingerprint: 648E C3FE ACF6 A730 FF52 D717 776D 1CB0 4396 B2D0)

    Nick Gazaloff814607220 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139