[ale] portforwarding on linux

David Tomaschik david at systemoverlord.com
Wed Mar 6 18:52:39 EST 2013


On Wed, Mar 6, 2013 at 1:50 PM, Jim Kinney <jim.kinney at gmail.com> wrote:

> iptables is THE tool for this.
>
>
> iptables -t nat -a REROUTING -m tcp -p tcp -dport 19080 -j REDIRECT
> --to-port 8080
>

I think you mean PREROUTING.  Though a REROUTING table could be cool too....


>
> On Wed, Mar 6, 2013 at 4:26 PM, Narahari 'n' Savitha <savithari at gmail.com>wrote:
>
>> Friends:
>>
>> I want to forward port 19080 to 8080 on my local arch box ?
>>
>> Is there a simple way to do this.  I googled it and I see something
>> called iptables but it is too hairy to learn.
>>
>> Can any expert here break it down for me as to what all is involved.
>>
>> I should be able to say traffic on port 19080 forward to port 8080 on the
>> same ip.
>>
>> My ifconfig results are
>>
>> [devusr at ARCH64-TOMCAT-DEV-MACHINE WEB-INF]$ ifconfig
>> enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>>         inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255
>>         inet6 fe80::a00:27ff:fea6:8c98  prefixlen 64  scopeid 0x20<link>
>>         ether 08:00:27:a6:8c:98  txqueuelen 1000  (Ethernet)
>>         RX packets 128271  bytes 36766353 (35.0 MiB)
>>         RX errors 0  dropped 0  overruns 0  frame 0
>>         TX packets 99743  bytes 11777820 (11.2 MiB)
>>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>>
>> lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
>>         inet 127.0.0.1  netmask 255.0.0.0
>>         inet6 ::1  prefixlen 128  scopeid 0x10<host>
>>         loop  txqueuelen 0  (Local Loopback)
>>         RX packets 25378  bytes 38050755 (36.2 MiB)
>>         RX errors 0  dropped 0  overruns 0  frame 0
>>         TX packets 25378  bytes 38050755 (36.2 MiB)
>>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>>
>> -Narahari
>>
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
>>
>
>
> --
> --
> James P. Kinney III
> *
> *Every time you stop a school, you will have to build a jail. What you
> gain at one end you lose at the other. It's like feeding a dog on his own
> tail. It won't fatten the dog.
> - Speech 11/23/1900 Mark Twain
> *
> http://electjimkinney.org
> http://heretothereideas.blogspot.com/
> *
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>


-- 
David Tomaschik
OpenPGP: 0x5DEA789B
http://systemoverlord.com
david at systemoverlord.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20130306/2fac6b29/attachment-0001.html>


More information about the Ale mailing list