First mac from list gets internet

Discussion in 'Tomato Firmware' started by eRd12, Nov 2, 2007.

  1. eRd12

    eRd12 LI Guru Member

    Hi. I'm looking for script which could give access to internet for only one mac from for example three. This is a situation:
    somebody has 3 PC's at home but pays only for one, the first PC which he turn on would get access (beacause it was first) and if he want to have access on the second, he must turn off the first one and so on...
    In access restriction it is impossible to do. Maybe iptables can bring me such possibility?
  2. Macskeeball

    Macskeeball LI Guru Member

    If you're referring to the networking term Media Access Control (ie. a MAC address), it is important to capitalize each letter in the acronym. Otherwise, you cause confusion between that and "Mac" as in Macintosh.
  3. eRd12

    eRd12 LI Guru Member

    so you have one more post, the same about MAC (today or every day). I could risk opinion that half of your posts are about difference between mac and MAC. It isn't big difference because:
    - everyone (beside you) know what i mean
    - mac is for me MAC, not Mac :biggrin:

    If you don't have anything useful just don't write.
  4. Macskeeball

    Macskeeball LI Guru Member

    (My postcount) divided by 2 = 41.5
    # of posts I've made about this = 2
    41.5 > 2

    That is an assumption on your part. At the very least, your thread title and post needed extra work to decipher. Writing correctly makes you more easily understood by others. Rules of capitalization, grammar, and spelling exist as standards for a reason.

    As a Mac user, I beg to differ. So does Google.

    I do not wish to start a flamewar, so that is all I have to say about that.
  5. bogderpirat

    bogderpirat Network Guru Member

    you're stupid.
  6. LLigetfa

    LLigetfa LI Guru Member

    Setting the DHHCP pool to just one IP would acheive that. Setting a firewall rule allowing just the one IP would prevent the others from hard coding IPs to gain access.

    Strange as it seems, no amount of learning can cure stupidity, and formal education positively fortifies it. -- Stephen Vizinczey
  7. eRd12

    eRd12 LI Guru Member

    So you say to give one ip for example for three MACs in static DHCP and it would be my solution? Very interesting and very easy (more easily than i thought :rolleyes:) Thank you very much :wink:

    It's not possible to write the same ip for three MAC's in static DHCP ;/
    Could you say what should I do with it ? :confused:

    I have ip's from to 25 for example. In firewall script I give the access only for some mac's from my list, other have no access.
    Now I should set DHCP for to 26 and set 2-25 in static DHCP but 26 will be "free" DHCP so the one (and first active) from these three MACs(not in static DHCP but allowed in firewall script) will get ip

    This solution is not the best I would like to make. I need something like this... Ip can get mac1 or mac2 or mac3.
  8. tinfoil

    tinfoil LI Guru Member

    Don't use statically assigned DHCP addies, use a regular DHCP pool with just one IP in the pool. The first machine to query the DHCP will get an address. The remaining will not. Though a problem may occure if a client doesn't properly release it's IP address.

    Now, you deny all traffic for any IP that isn't in your pool. Ya know, pretty much as LLigetfa says. I do wish I had read things a little closer.

    Ain't sharing internet connections with your neighbours grand?
  9. HennieM

    HennieM Network Guru Member

    If person X is paying you for internet bandwidth, why not just give person X 3 IPs for his/her 3 MACs, but limit the 3 IP's bandwidth to collectively not exceed x Mbps with QoS. This way, if one machine accesses the internet at a time it will be fast, and 3 simultaniously will be slow. You get what he pays for, and he gets what he pays for.
  10. eRd12

    eRd12 LI Guru Member

    Yes but the bandwidth is fluently (if you are alone in lan you have whole speed), and he's not paying for speed but for access. Every computer connected to this network has the same law. It wouldn't be fair if one man has 1 computer and the second has 3 for example.
  11. tinfoil

    tinfoil LI Guru Member

    Even if you do limit the person to a single connection, there's not much work involved in bypassing this. Hook up a Linksys, change the MAC to match that of a legit client and share it from there. You may be better off to do as HennieM suggests.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice