Re: alfresco and iptables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/12/2007, Craig White <craigwhite@xxxxxxxxxxx> wrote:
> Well, it's really an iptables question.
>
> alfresco runs on tomcat which runs as an unprivileged user which makes
> it difficult to use as a CIFS server (massive understatement)
>
> so what I want to do is to redirect packets from unprivileged ports to
> the normal SMB ports...here is my iptables script (but it's not working
> as intended)
>
> #!/bin/sh
> #
> echo 1 > /proc/sys/net/ipv4/ip_forward
> modprobe iptable_nat
> iptables -F
> iptables -t nat -F
> iptables -P INPUT ACCEPT
> iptables -P FORWARD ACCEPT
> iptables -P OUTPUT ACCEPT
> iptables -t nat -A PREROUTING -p tcp -d 192.168.3.8 --dport 445 -j
> REDIRECT \
> --to-ports 1445
> iptables -t nat -A PREROUTING -p tcp -d 192.168.3.8 --dport 139 -j
> REDIRECT \
> --to-ports 1139
> iptables -t nat -A PREROUTING -p udp -d 192.168.3.8 --dport 137 -j
> REDIRECT \
> --to-ports 1137
> iptables -t nat -A PREROUTING -p udp -d 192.168.3.8 --dport 138 -j
> REDIRECT \
> --to-ports 1138
> iptables -t nat -A PREROUTING -p tcp -s 192.168.3.8 --dport 1445 -j
> REDIRECT \
> --to-ports 445
> iptables -t nat -A PREROUTING -p tcp -s 192.168.3.8 --dport 1139 -j
> REDIRECT \
> --to-ports 139
> iptables -t nat -A PREROUTING -p udp -s 192.168.3.8 --dport 1137 -j
> REDIRECT \
> --to-ports 137
> iptables -t nat -A PREROUTING -p udp -s 192.168.3.8 --dport 1138 -j
> REDIRECT \
> --to-ports 138

Umm... aren't those last four rules undoin gwhat the first 4 are doing?

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux