The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 NATD and IPFW too
Author: Andy 
Date:   01-09-00 16:03

first of all, here is the configuration of my network
we have 13 ip's...
our server has 2 interfaces these are xl0 and xl1
xl0 has private ip: 192.168.100.1
xl1 has global fix ip: 202.77.127.213

---[cable modem]-----(xl1,202.77.127.213,202,202.77.127.220)[fbsd]-(xl0,192.168.100.1/24)----[hub]------[our private net]

i meant to forward any incoming connection from 202.77.127.212.220 (alias ip) to another server which is in the private net. let's say 192.168.100.250.

these are my ipfw configurations:
00040 fwd 192.168.100.250 log ip from any to 202.77.127.220
00050 fwd 127.0.0.1,7666 tcp from 192.168.100.0/24 to any 6600-7000
00050 fwd 127.0.0.1,3128 tcp from 192.168.100.0/24 to any 80
00100 divert 8668 ip from any to any via xl1
00100 allow ip from any to any via lo0
00200 deny ip from any to 127.0.0.0/8
65000 allow ip from any to any
65535 deny ip from any to any

our kernel configurations:
options IPSTEALTH #support for stealth forwarding
options IPFILTER #ipfilter support
options IPFILTER_LOG #ipfilter logging
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_FORWARD
options IPDIVERT

and the natd daemon which is running:
88 ?? Ss 0:02.26 /sbin/natd -n xl1

i bring the 202.77.127.220 up by this command:

ifconfig xl1 202.77.127.220 alias netmask 255.255.255.0
ifconfig lo0 202.77.127.220 alias netmask 255.255.255.0

when i tried to ping to 202.77.127.220 none of them replied

i can't make any connection to this ip.

can u help us?

thanks

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 NATD and IPFW too   new
Andy 01-09-00 16:03 
 RE: NATD and IPFW too   new
Dan Langille 01-09-00 22:41 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org