Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo router and server on one machine, need help.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tameritoke
n00b
n00b


Joined: 08 Sep 2005
Posts: 38
Location: Germany

PostPosted: Sun Nov 08, 2009 1:09 pm    Post subject: gentoo router and server on one machine, need help. Reply with quote

Hi people!
I am not a network pro, therefor I ask you gladly for help. I have a
gentoo box with 2 ethernet cards. I have red the gentoo home router guide at:

http://www.gentoo.org/doc/en/home-router-howto.xml?style=printable

but I need to use the machine as router as well as server itself.

I have 2 NIC in the machine (eth0,eth1). On the machine is asterisk and
apache installed. I want to use the machine a router and server as well.

the sip gateway connected at eth0 is configured as:
192.168.1.5 with it's gateway 192.168.1.1 and nothing goes along to
asterisk.

I guess, it's not possible to have on the same gateway address a service
running. Could you give me some good advise how to get the thing to run?!

My network configuration according /etc/conf.d/net:
Quote:

# This network configuration was written by net-setup

config_ppp0=("ppp")
link_ppp0="eth1"
plugins_ppp0=("pppoe")
pppd_ppp0=(
"defaultroute"
"usepeerdns"
)

username_ppp0="xxxx"
password_ppp0="xxxx"



ifconfig shows me this:

Quote:


eth0 Link encap:Ethernet HWaddr 00:18:f3:c1:db:b5
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::218:f3ff:fec1:dbb5/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:398 (398.0 B)
Interrupt:27 Base address:0x2000

eth1 Link encap:Ethernet HWaddr 00:40:95:31:65:ab
inet addr:85.183.112.3 Bcast:85.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::240:95ff:fe31:65ab/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24127 errors:0 dropped:0 overruns:0 frame:0
TX packets:16677 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:31233987 (29.7 MiB) TX bytes:1676192 (1.5 MiB)
Interrupt:21 Base address:0x8c00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:83 errors:0 dropped:0 overruns:0 frame:0
TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6877 (6.7 KiB) TX bytes:6877 (6.7 KiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:85.183.112.3 P-t-P:213.191.64.102 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:24096 errors:0 dropped:0 overruns:0 frame:0
TX packets:16553 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:30701949 (29.2 MiB) TX bytes:1304404 (1.2 MiB)




Tamer
Back to top
View user's profile Send private message
Simba7
l33t
l33t


Joined: 22 Jan 2007
Posts: 708
Location: Billings, MT, USA

PostPosted: Sun Nov 08, 2009 11:23 pm    Post subject: Reply with quote

Have you compiled your kernel with proper support?

Also, did you follow the Gentoo Home Router guide?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum