Want to NAT each user to fixed Wan:port(20,000-30,000)

Discussion in 'Tomato Firmware' started by winwin, Oct 19, 2008.

  1. winwin

    winwin LI Guru Member

    In my country, everyone who provides Internet to any user needs to record log of user's usages. (For example, log-in & log-out date time, Src-IP & Dst-IP, etc)

    For my case based on tomato, I would like to NAT each user to each range of Wan:port. For example user A (DHCP with, all traffic would be done NAT to Wan-IP and port number 10,000 - 20,000.

    What is a iptables command can get it work? Thank you for help.
  2. mstombs

    mstombs Network Guru Member

  3. winwin

    winwin LI Guru Member

    I got an answer now, thank you.
  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