LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-17-2011, 01:31 AM   #1
Terrible Zombie
LQ Newbie
 
Registered: Nov 2010
Posts: 3

Rep: Reputation: 0
ip-up won't start, netfilter config


Hi all.
Slackware 13.1, kernel 2.6.37. I'm setting up a gateway.
eth1 - WAN, eth0 - LAN; We are connecting to beeline through L2TP.

There are several problems.
1)Routes from /etc/ppp/ip-up.d/beeline are not beeing applied, although this script and /etc/ppp/ip-up are executable, and i have ipparam beeline in my l2tp config.
Here they are:
Code:
# cat /etc/ppp/ip-up.d/beeline

#!/bin/sh
GW=10.42.200.1
route del $5 dev $1
route add -host $5 gw $GW

route add -net 85.21.0.0 netmask 255.255.0.0 gw $GW
route add -net 10.0.0.0 netmask 255.0.0.0 gw $GW

for i in $(grep "^nameserver" /etc/resolv.conf | awk '{print $2}') ; do
   route add -host $i gw $GW
done

route del default
route add default dev ppp0
Code:
# cat /etc/ppp/ip-up

#!/bin/sh
if [-x /etc/ppp/ip-up.d/$6 ]; then
   /etc/ppp/ip-up.d/$6 $1 $2 $3 $4 $5
fi
2)If i have DNS- and DHCP-servers, using dnsmasq - how to set their IPs in LAN? In rc.inet1.conf for eth0?

3)The easiest way to test my gateway is to MASQUERADE all traffic to ppp0 with all policies set to ACCEPT? Or something else need to be done? What exactly needs to be done in Slack?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Start vmplayer without executing vm-config Swift&Smart Slackware 1 07-15-2007 05:06 AM
cant start the yast inetd config vtecturbo13 SUSE / openSUSE 1 03-08-2005 04:28 AM
redhat-config-samba does not start hobz Linux - Networking 9 01-17-2005 07:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration