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   Newer Topic  |  Older Topic 
 freebsd gateway problem
Author: ex5 
Date:   10-06-05 06:35

hi, i want to setup a gateway using freebsd.
the problem right now is every time i run ppp, it will display this error message

setsocopt(IP_ADD_MEMBERSHIP RIP): can't assign requested address
ignore RTM)CHANGE without mask
interface tun0 to 217.x.x.x turned off

and on windows side, i set default gateway as the ip address of the freebsd gateway.

Reply To This Message
 
 Re: freebsd gateway problem
Author: Dan 
Date:   15-06-05 11:16

How are you running ppp?

What is your configuration file?

--
Webmaster

Reply To This Message
 
 Re: freebsd gateway problem
Author: ex5 
Date:   27-06-05 11:17

sorry for being late...
Dan,
i running ppp manually..
this is my rc.conf

=====rc.conf====

ifconfig_ep0="inet 100.0.0.4 netmask 255.255.255.0"
ifconfig_ep1="DHCP" <<< this is the interface for my internet
gateway_enable="YES"
router_enable="YES"
router="/sbin/router"
router_flags="-q"

natd_enable="YES"
natd_interface="ep1"
natd_flags="-s -u -m"
firewall_enable="YES"
firewall_type="open"


===end of rc.conf=========



my ppp.conf
===ppp.conf

default:
set device PPPoE:ep1
set speed sync
set mru 1492
set mtu 1492
enable lqr
add default HISADDR
nat enable yes
nat log yes
nat same_ports yes
enable dns

myisp:
set authname myauthname
set authkey myauthkey


===end ppp.conf===

and on /etc/gateways,
i add this line

no_rdisc


I think, this all that i add on my system, the kernel i compiled with
options IPFILTER
options IPFIREWALL
options IPDIVERT
options IPFILTER_LOG
options IPFIREWALL_DEFAULT_TO_ACCEPT


what i'm trying to do is to setup my freebsd to act as a gateways for 10 machine in my LAN.
xI read the freebsd documentation, but not sure whether i should setup my freebsd as a bridge or a gateways.

someone suggest me to set the default route, but i'm not sure what ip should i put.

Please help me...



Post Edited (27-06-05 05:17)

Reply To This Message
 
 Re: freebsd gateway problem
Author: ex5 
Date:   28-06-05 04:40

Please someone help me. I setup for my office..

Reply To This Message
 
 Re: freebsd gateway problem
Author: ex5 
Date:   29-06-05 08:06

I read some where from Internet, they suggest me to setup a dns server for my client(windows box), but, right now all client in my LAN are using static ip.

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


 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