1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tomato script

Discussion in 'Tomato Firmware' started by Joro711, Nov 7, 2007.

  1. Joro711

    Joro711 Network Guru Member

    Hallo.Sorry for my bad english.I have this script.This is correct script?

    iptаbles -P INPUT ACCEPT
    iptаbles -P OUTPUT ACCEPT
    iptаbles -P FORWARD DROP
    iptаbles -F
    iptаbles -t nat -F
    iptables -A FORWARD -s 192.168.2.2 -m -mac --mac-source 00:18:F3:A4:85:FA -j ACCEPT
    iptables -A FORWARD -s 192.168.2.3 -m -mac --mac-source 00:1A:4D:81:95:E7 -j ACCEPT
    iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -j SNAT --to 192.168.1.2

    The idea is 192.168.2.2 connect only with 00:18:F3:A4:85:FA and 192.168.2.3 connect only with 00:1A:4D:81:95:E7.
     
  2. u3gyxap

    u3gyxap Network Guru Member

  3. Joro711

    Joro711 Network Guru Member

  4. u3gyxap

    u3gyxap Network Guru Member

    Please, read what I have already posted. It works fine.
     
  5. Joro711

    Joro711 Network Guru Member

    Sorry for my bad english.But i dont understand how write this script.Help me.
     

Share This Page