Creating IPTABLES rule in NAT table using GUI

Home Page Forums Network Management ZeroShell Creating IPTABLES rule in NAT table using GUI

This topic contains 2 replies, has 0 voices, and was last updated by  teklimbu 7 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #43250

    teklimbu
    Member

    Hi all,

    I have Zeroshell running in Bridge mode for QoS.

    I need to create the following IPTABLES rule in Zeroshell:

    iptables -t nat -I PREROUTING -p TCP -s 192.168.0.0/24 -d 0.0.0.0/0 –dport 80 -j DNAT –to 172.16.1.1:3128

    How do I create this rule from the GUI?

    Thanks,
    Tek

    #52158

    atheling
    Member

    If you click on “router” on the left navigation area then on “virtual servers” along the tabs of that page I think you’ll get to the place for adding/changing that type of entry.

    #52159

    redfive
    Participant

    If you want using the GUI, you should change the default behavior of ZS , take a look here
    http://www.zeroshell.net/eng/forum/viewtopic.php?t=2816&highlight=
    otherwise , you can ever add your rule in post-boot…
    cheers
    jonatha

    #52160

    mgibbons
    Member

    To be honest apart from the simplest Masqueraing and virtual server rules which can be setup in the GUI we tend to put everything in the NAT startup scripts section.

    Then you can enter anything you want in standard IPTABLES notation just as on any other Linux box.

    Its nice to use the GUI/WEBUI but sometimes its just better to have it as you want it in the scripts section.

    KR’s

    Mark

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.