🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.networking
1 messages
1 total messages Started by Adamo Mon, 27 Feb 2006 13:43
linux - router problem
#278085
Author: Adamo
Date: Mon, 27 Feb 2006 13:43
35 lines
1973 bytes
Mam nastepujacy problem, dysponuje pula publicznych ip i chce uzyc linux 
jako router, wszystkie pakiety maja przechodzic przez niego (bedzie 
jeszcze firewall, trafic shaper)

Wyglada to tak:
$WAN: eth0
$LAN: eth1
Intterfejsy
# WAN
$IP addr add 192.168.0.70/24 brd 192.168.0.255 dev $WAN scope global 
label $WAN
# LAN
$IP addr add 192.168.0.70/26 brd 192.168.0.127 dev $LAN scope global 
label $LAN
$IP link set $WAN up
$IP link set $LAN up
echo 1 > /proc/sys/net/ipv4/conf/all/proxy_arp
echo 1 > /proc/sys/net/ipv4/ip_forward
Routing:
IP route add 0/0 via 192.168.0.254 dev $WAN

Oczywiscie wszystki ip sa publiczne. Czyli na interfjsie lokalnym 
podzelilem ta pule ip na podsieci. Problem polega na tym ze moge wejsc 
na klienta (np 192.168.0.72) ale nie moge zrobic tego w druga strone, 
klient nie laczy sie z internetem.
Polecenie ip route wyglada nadtepujaco:
192.168.0.254 dev eth0  scope link
192.168.0.64/26 dev eth1  proto kernel  scope link  src 192.168.0.70
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.70
169.254.0.0/16 dev lo  scope link
default via 192.168.0.254 dev eth0

Dziekuje za wszelkie sugestie.
Pozdrawiam
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads