*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i am running tomcat from jail using port 8080, as non-root user.
i want to access tomcat through port 80 using ipfw forward feature.
i recompiled the kernel using this options:
00100 allow ip from any to any via lo0
00200 deny ip from any to 127.0.0.0/8
00300 deny ip from 127.0.0.0/8 to any
01000 fwd 127.0.0.1,8080 tcp from any to any dst-port 80 in
65535 deny ip from any to any
when i try to access tomcat through port 80, it doesn't work?
I've worked with IPFW for a couple years, but I haven't used it for forwarding / NAT at all. If you haven't already, read through 28.6 IPFW and the manpages for ipfw(8).
Frankly, for tcp forwarding I prefer to use rinetd (which you can install from ports) because of its simplicity. But I'm probably in the minority there.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
You could just use PF, which is already built-in by default SFAIK. The syntax is dead simple and it gives you a single place to configure port redirection, NAT, and packet filtering.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.