LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-28-2004, 09:42 AM   #1
the_reen
LQ Newbie
 
Registered: Jul 2004
Location: Poland
Distribution: SuSE 9.2 Professional
Posts: 22

Rep: Reputation: 15
FWBuilder + iptables + fedora -> port forwarding


Hello!

I need help with configuring my firewall with Firewall Builder software. I have Fedora Core 1 and iptables 1.2.8.

My LAN are two computer connected. One is a desktop machine, the second is a server.

I have NAT rule that shares the internet to my desktop.

I would like to forward a port for example 80 from my server (linux) to the workstation, that will provide access to my webserver on my workstation.

Need a NAT rule made in FWBuilder, because I have my whole firewall configuration in it ;-)

Any one has any links that would help me?
By the way, I've tried to do this, but I have cuted access to my server.

Oh, and maybe any one knows what is the best software to help me view my iptables access logs (in a better, for example graphically way).
 
Old 09-04-2004, 07:46 AM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Don't know the specifics of how to do it with FWBuilder, but the rule itself would be:

iptables -t nat -A PREROUTING -i ethX -p tcp --dport 80 -j DNAT --to-destination 123.456.78.9

where ethX is the external interface connected to the internet and 123.456.78.9 is the IP addres of the desktop. Depending on how you have your firewall configured, you may need to add a rule to forward as well:

iptables -A FORWARD -i ethX -o ethY -p tcp --dport 80 -j ACCEPT

Where ethY is the internal interface connected to the desktop.

Oh, and maybe any one knows what is the best software to help me view my iptables access logs (in a better, for example graphically way).
Maybe Webmin setup to listen on the internal IP, fwlogview, or fireparse?
 
Old 09-04-2004, 12:34 PM   #3
the_reen
LQ Newbie
 
Registered: Jul 2004
Location: Poland
Distribution: SuSE 9.2 Professional
Posts: 22

Original Poster
Rep: Reputation: 15
I've made the rules in fwbuilder by myself ...

Anyway thx, for help especially with the logview software ;-P
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Port forwarding with iptables on Fedora fychan Linux - Networking 3 04-13-2004 11:49 AM
port forwarding with iptables David_99 Linux - Security 5 12-09-2003 08:37 PM
IPTABLES port forwarding sal_paradise42 Linux - Networking 5 10-25-2003 04:11 PM
Iptables - Port Forwarding luivm Linux - Networking 3 05-19-2003 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration