Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old May 19th, 2002, 01:08 PM
pentium5 pentium5 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: entlegen
Posts: 442 pentium5 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
can we combine firewall with NAT how testing can be done?

my server is going to be co-location.
I have a firwall using iptables. and I have searched goggle with NAT, it came up with this NAT?

can we combine firewall with NAT?

my current situation are as follows:

1. 1000M bps planet external card ( 192.168.1.28 for testing under boardband env. )
2. 100m bps 3com internal ( not configure yet) just sitting in PCI slot.
3. current apache setting is private IP based

I think I need the following to let these services to go through


do u think and how can these the two NIC in broad band enviroment?

Other services go to DMZ 192.168.1.10 which does not exist.

??? put the script to rc.local , am I right?
#!/bin/sh
# 18 th may 2002
# Interfaces
eth0="real ip here" - external side

# eth1 - Internet side
eth1="192.168.1.199"

# NAT for internal network
iptables -t nat -A POSTROUTING -s 192.168.1.199/24 -o eth1 -j MASQUERADE
iptables -A FORWARD -i eth0 -j ACCEPT
iptables -A FORWARD -o eth0 -j ACCEPT

# Configure NAT
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to
192.168.1.199
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 21 -j DNAT --to
192.168.1.199
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 22 -j DNAT --to
192.168.1.199
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 23 -j DNAT --to
192.168.1.199
__________________
regards,

wish to use AT 89c51 single chip computer to do remote sensing and send the data back from woods to office via nokie 3330 and internet. HOW?
first I must revise C program thro' example, what's next?

Reply With Quote
  #2  
Old May 21st, 2002, 03:27 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
I assume this is going to be a webserver? Why do you need NAT? That's only useful for network traffic that starts on one network (internal?) and is supposed to end up on a different network (internet?). If the traffic starts on your server, or if the traffic is going to your server, you don't need NAT. NAT is for routers, really.

Reply With Quote
  #3  
Old May 21st, 2002, 09:20 AM
pentium5 pentium5 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: entlegen
Posts: 442 pentium5 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
my home grown web server is connected linksys router with dmz.
I can do forward or Network address translation.

In my web server, it has a firewall -iptables, thousand of users ( IP) to trick me and my server each day.

in co-location , i will be given an real ip. As administrator ( sortof and still learning) like other people, I will be using SSH to telnet into my own web server to administrator.

NAT and firewall will give me a safty and I have to SCP ( which re-seaching" to sync web-server in co-loation with office server ( linux + solaris).

TWO nic - planet 1000m and 3 com NIC is in the web-server ( half-size 2U).

qmail was not installed right. I have do testing until it is prpoerly.

12 hours facing the computers on daily basis.

I need to test two under to differnet network layers and currently I am using broadband.

I have success in installing a freesco router myself and learn how it works. I have got all parameter and written down. Freesco is no better than a linksys router.

Reply With Quote
  #4  
Old May 21st, 2002, 01:58 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
I'm still confused as to why you need to use NAT. Firewall, yes, of course, but NAT (Network Address Translation), is for transparently redirecting network traffic. What traffic is it that you are redirecting, and where are you sending it?
Are you trying to only allow certain ip's to connect with ssh? You don't need NAT for that, just iptables/ipchains.

Reply With Quote
  #5  
Old May 24th, 2002, 10:43 AM
pentium5 pentium5 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: entlegen
Posts: 442 pentium5 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
in co-location:

incoming port 80,25,21,22,3360.
nic-eth0- real ip.
nat to : 192.168.1.80( eth1)

others to dmz of noexisting machine 192.168.1.10.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > can we combine firewall with NAT how testing can be done?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway