Networking Forums

Networking Forums > Computer Networking > Linux Networking > Problems with setting up Iptables

Reply
Thread Tools Display Modes

Problems with setting up Iptables

 
 
Frank Rosario
Guest
Posts: n/a

 
      11-14-2003, 02:45 PM
Hello all. Just to give you a heads up warning; I'm pretty new to
working with firewalls (sysadmin in training). Here's my problem. We
have a firewall setup in our office. In the office; we have a server
with a mirror of our websites. I need to set it up so that it can be
viewed from outside the firewall.

These are the commands I used to set it up; ideally trying to get all
packets meant for the server to be forwarded on to the actual box.


Note : the http ports are intentionally not on 80

1.) iptables -t nat -A PREROUTING -i eth0 -p tcp -dport 123 -j DNAT
--to 192.168.1.12

2.) iptables -A FORWARD -o eth1 -p tcp -d 192.168.1.12 --dport 123 -j
ACCEPT
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables DNS problems Vampyre Linux Networking 7 01-23-2006 12:26 PM
IPTABLES: TOS setting problems craig Linux Networking 1 10-05-2004 03:23 PM
Problem setting up ftp server inside lan (iptables) Sam Linux Networking 1 08-16-2004 09:26 PM
Trouble while setting iptables Arsenio Lupin Linux Networking 1 11-14-2003 08:34 AM
iptables rule problems Kauna Linux Networking 1 10-14-2003 01:39 PM



1 2 3 4 5 6 7 8 9 10 11