<div dir="ltr">On Wed, Mar 6, 2013 at 1:50 PM, Jim Kinney <span dir="ltr"><<a href="mailto:jim.kinney@gmail.com" target="_blank">jim.kinney@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">iptables is THE tool for this.<br><br><br>iptables -t nat -a REROUTING -m tcp -p tcp -dport 19080 -j REDIRECT --to-port 8080<br>
</blockquote><div><br></div><div style>I think you mean PREROUTING. Though a REROUTING table could be cool too....</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><div class="gmail_quote"><div><div class="h5">On Wed, Mar 6, 2013 at 4:26 PM, Narahari 'n' Savitha <span dir="ltr"><<a href="mailto:savithari@gmail.com" target="_blank">savithari@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Friends:<br><br>I want to forward port 19080 to 8080 on my local arch box ? <br><br>Is there a simple way to do this. I googled it and I see something called iptables but it is too hairy to learn.<br>
<br>Can any expert here break it down for me as to what all is involved.<br>
<br>I should be able to say traffic on port 19080 forward to port 8080 on the same ip.<br><br>My ifconfig results are<br><br><span style="font-family:courier new,monospace">[devusr@ARCH64-TOMCAT-DEV-MACHINE WEB-INF]$ ifconfig<br>
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500<br> inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255<br> inet6 fe80::a00:27ff:fea6:8c98 prefixlen 64 scopeid 0x20<link><br>
ether 08:00:27:a6:8c:98 txqueuelen 1000 (Ethernet)<br> RX packets 128271 bytes 36766353 (35.0 MiB)<br> RX errors 0 dropped 0 overruns 0 frame 0<br> TX packets 99743 bytes 11777820 (11.2 MiB)<br>
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br><br>lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536<br> inet 127.0.0.1 netmask 255.0.0.0<br> inet6 ::1 prefixlen 128 scopeid 0x10<host><br>
loop txqueuelen 0 (Local Loopback)<br> RX packets 25378 bytes 38050755 (36.2 MiB)<br> RX errors 0 dropped 0 overruns 0 frame 0<br> TX packets 25378 bytes 38050755 (36.2 MiB)<br> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0</span><span><font color="#888888"><br>
<br>-Narahari<br>
</font></span><br></div></div>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>-- <br>James P. Kinney III<br><i><i><i><i><br></i></i></i></i>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.<br>
- Speech 11/23/1900 Mark Twain<br><i><i><i><i><br><a href="http://electjimkinney.org" target="_blank">http://electjimkinney.org</a><br><a href="http://heretothereideas.blogspot.com/" target="_blank">http://heretothereideas.blogspot.com/</a><br>
</i></i></i></i>
</font></span><br>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>David Tomaschik<br>OpenPGP: 0x5DEA789B<br><a href="http://systemoverlord.com" target="_blank">http://systemoverlord.com</a><br><a href="mailto:david@systemoverlord.com" target="_blank">david@systemoverlord.com</a>
</div></div>