LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-03-2005, 01:09 AM   #1
colabus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Rep: Reputation: 15
Dialup / Static IP


Hello guys,

I recenting got 6 IPs to use with my ISP for dialup. I run Debian and using pppconfig to configure the connection. I just am not sure why it's not working.

I set the IP static <address>:<local ip> and doesn't work. I have also tried just the <address>: as specified and that doesn't work either. When I dialup without this the ip defaults to the lower of the range given.

What am I missing here?
 
Old 09-03-2005, 08:39 PM   #2
Liquid_T<NL>
LQ Newbie
 
Registered: Aug 2005
Distribution: SuSe
Posts: 24

Rep: Reputation: 15
Re: Dialup / Static IP

Quote:
Originally posted by colabus
Hello guys,

I recenting got 6 IPs to use with my ISP for dialup. I run Debian and using pppconfig to configure the connection. I just am not sure why it's not working.

I set the IP static <address>:<local ip> and doesn't work. I have also tried just the <address>: as specified and that doesn't work either. When I dialup without this the ip defaults to the lower of the range given.

What am I missing here?
I don't exactly understand, but maybe that is because it is late, and I'm not very experienced with Linux, but one of the thing you could begin with is to contact your ISP, maybe they have an answer...
 
Old 09-03-2005, 08:46 PM   #3
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Quote:
I recenting got 6 IPs to use with my ISP for dialup.
This seems to indicate some sort of special usage you may wish to explain.
 
Old 09-04-2005, 01:55 AM   #4
colabus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Original Poster
Rep: Reputation: 15
howdy.. yea I think I may have been a little vague.

I have a static IP when I dialup and this is OK, lets say XXX.XXX.XXX.143

I also have XXX.XXX.XXX.145 - .150

.144 - network
.151 - broadcast

Now I have my local network going fine, 10.25.49.1/24 but I want to put them on net IPs.. I'm not sure how to do this cause I have also just used it was NAT.

My firewall I wrote is along the lines of

Code:
#!/bin/sh

iptables=/sbin/iptables
modprobe=/sbin/modprobe

# Flushing tables..
$iptables -F
$iptables -t nat -F

# MASQ rules for gateway

echo "1" > /proc/sys/net/ipv4/ip_forward
$iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE -s 10.25.49.0/24

# Loading modules

$modprobe ip_conntrack_irc
$modprobe ip_nat_irc
$modprobe ip_conntrack_ftp
$modprobe ip_nat_ftp

# Functions
ftpports () {
        case "$1" in
                permit)
                ;;

                forward)
                ;;
        esac
}

case "$1" in
        start|restart|reload)
                # PERMIT SELECTED PORTS
                $iptables -A INPUT -i ppp0 -p tcp --dport 22 -j ACCEPT
                $iptables -A INPUT -i ppp0 -p tcp --dport 80 -j ACCEPT
                $iptables -A INPUT -i ppp0 -p tcp --dport 113 -j ACCEPT
                ftpports permit

                # ALLOW INCOMING BASED ON EXISTING
                $iptables -A INPUT -m state --state NEW -i ! ppp0 -j ACCEPT
                $iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

                # BLOCK REMAINING
                $iptables -A INPUT -i ppp0 -p all -j DROP

                # ETHERNET PORT FORWARDING
                $iptables -t nat -A PREROUTING -p tcp --dport 113 -j DNAT --to 10.25.49.195:113
                ftpports forward
                echo "Firewall rules loaded successfully!"
                ;;

        stop|kill|drop)
                echo "Firewall rules unloaded successfully!"
                ;;

        paranoid|insane)
                # ALLOW INCOMING SSH
                $iptables -A INPUT -i ppp0 -p tcp --dport 22 -j ACCEPT

                # BLOCK REMAINING
                $iptables -A INPUT -i ppp0 -p all -j DROP
                echo "Firewall rules loaded successfully! Only allowing SSH connections."
                ;;

        *)
                echo "Usage: /etc/init.d/firewall (start|stop|reload|restart|paranoid)"
                exit 1
                ;;

esac

exit 0
I haven't adjusted this since getting the static IPs. I was told by a friend to setup eth0 on that static IP, and then eth0:0 as the local network IP.

Any tips or ideas, please let me know
 
Old 09-04-2005, 06:00 PM   #5
colabus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Original Poster
Rep: Reputation: 15
 
Old 09-09-2005, 02:38 AM   #6
colabus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Original Poster
Rep: Reputation: 15
ignore this thread now.. I worked out the problem in the end, wasn't thinking about it right.

Cheers
 
  


Reply



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
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
Is there any static ARP for static IP network? linux_lover2005 Linux - Networking 2 05-18-2005 12:01 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM
linux dialup faster and more stable than windows dialup -why? whitshade Linux - Networking 4 06-19-2004 03:52 PM
Route dialup modem packets back through dialup instead of default route cable modem jogress Linux - Networking 1 10-21-2003 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:43 AM.

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