Find the answer to your Linux question:
Results 1 to 4 of 4
following are my Linux router information eth1= WAN IP= 110.88.89.66/32 Gateway= 110.88.89.65 eth0= LAN IP= 192.168.1.1/24 Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE all -- 0.0.0.0/0 0.0.0.0/0 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2007
    Posts
    6

    Question public subnet behind Linux Router


    following are my Linux router information

    eth1= WAN IP= 110.88.89.66/32
    Gateway= 110.88.89.65
    eth0= LAN IP= 192.168.1.1/24

    Chain POSTROUTING (policy ACCEPT)
    target prot opt source destination
    MASQUERADE all -- 0.0.0.0/0 0.0.0.0/0

    routing table is

    110.88.89.64 0.0.0.0 255.255.255.252
    192.168.1.0 0.0.0.0 255.255.255.0
    0.0.0.0 110.88.89.65 0.0.0.0

    My ISP gave me IP Pool 110.88.90.68/29 to use this on my LAN.
    my question is how can I use this IP pool on LAN side interface.
    i think now its simple.

    192.168.1.0 /24 is my LAN network and I can not change this, because i have near 180 PCs on my LAN.

    Help require.

    NETGUY.

  2. #2
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773
    you were assigned the subnet 110.88.90.68/29, thus you can address exactly the subnet mask count of computers from the internet by nat forwarding packets for these single ip's to a /29 subnet within your LAN and assigning the router device to listen for all the IPs from the 110.88.90.68/29 subnet.

    so, nat forwarding the subnets would be (the ? is variable):
    110.88.90.68/29 => 192.168.1.?/29

    i.e.
    110.88.90.68 => 192.168.1.1

    it can be easily done with iptables. use the search button or ask google how to set up nat forward.
    Last edited by Kloschüssel; 08-05-2010 at 11:18 AM.

  3. #3
    Just Joined!
    Join Date
    Feb 2007
    Posts
    6
    I did this but still no victory

    NET

  4. #4
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773
    You did what? For each ip you need to configure 3 things:

    1] router must listen on that ip (man ifconfig)
    2] router must accept the packets for the ip (man iptables)
    3] router must nat forward the packets for that ip to the internal subnet ip address (man iptables)

    As you have a /29 subnet, you should have 2^(32-29) = 8 ip addresses starting with 110.88.90.68.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •