Forums

Resolved
0 votes
Im quite new in ClearOS and Linux in terms of DHCP/Routing
Before any further explanation, below simple diagram

[INTERNET] --- [MODEM] --- (NIC1) [CLEAROS SERVER] (NIC2) ---> [LAN]

External IP (from modem) : DHCP - no problem
LAN IP : 10.10.10.1/23 (255.255.254.0)
DHCP LAN : 10.10.10.2 - 10.10.11.254
IP Forwarding enabled, net.ipv4 = 1 (idk, just google around but seem it already "1" in /proc/net/ipv4/forward)

<blockquote>The Situation</blockquote>
I want to expand my LAN network to host 512 +/- IP address.

<blockquote>The Problem</blockquote>
- DHCP range from 10.10.10.1 - 10.10.10.254 is getting internet <blockquote>BUT</blockquote> 10.10.11.1 - 10.10.11.254 get DHCP too but NO INTERNET (No error shows i mean like WiFi no yellow windows sign)
im afraid i don't know how to do routing or did i miss something? Please help me :( guide me. Thanks and sorry if the topic already posted by someone else, ive tried search but no dice.
Wednesday, August 31 2016, 06:17 AM
Share this post:
Responses (8)
  • Accepted Answer

    Friday, September 02 2016, 01:45 AM - #Permalink
    Resolved
    0 votes
    Dear Nick,
    The problem has been solved.

    Im not disabling server proxy, i just reboot the server. Weird, i rebooting before but no dice, today i reboot again and it solved.
    Thank for your help on checking.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 01 2016, 01:07 PM - #Permalink
    Resolved
    0 votes
    Disabling proxy : not yet sir, i'll try it tomorrow and let u know the result.
    thanks for the Putty tips :D
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 01 2016, 12:58 PM - #Permalink
    Resolved
    0 votes
    As a hint in putty, if you select text, it is automatically copied to the clipboard and a right-click will paste into the screen, so you can copy text straight out of putty and paste it between code tags on the forum.
    The transparent proxy rule at the end of the prerouting chain is correct and does not depend on the subnet.
    You can see the routing table with "ip ro".
    Have you tried disabling the proxy?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 01 2016, 10:48 AM - #Permalink
    Resolved
    0 votes
    this the result from the putty directly as u asked for sir..

    https://s21.postimg.io/f42ijpkvb/pg1.png
    https://s21.postimg.io/sz0t26faf/pg2.png

    I also add some firewall input in /etc/clearos/firewall.d/local to BLOCK some HTTPS site and so far it works!
    https://s11.postimg.org/d633x0jv7/Capture.png

    is the subnet need routing? because this my first time expanding subnet. i tried googling.. not sure.
    Thanks
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 01 2016, 07:12 AM - #Permalink
    Resolved
    0 votes
    The networking looks good so I suspect the proxy which I don't know. You can check the firewall with a "iptables -nvL -t nat". Paste the results from putty between code tags (piece of paper icon with a <>;). I can't give any more help with the proxy as I am away and can't play with my system. You could try temporarily disabling it to see if it is the problem.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 01 2016, 03:26 AM - #Permalink
    Resolved
    0 votes
    Here's the result of the output :
    https://s17.postimg.org/dr5xtkbpr/image.png

    enp3s0 is WAN (which is DHCP from Modem : 192.168.0.3)

    enp4s0 is LAN (Which is static : 10.10.10.1 subnet 255.255.254.0)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, August 31 2016, 12:49 PM - #Permalink
    Resolved
    0 votes
    LAN IP for server : 10.10.10.1/23
    DHCP IP Range : 10.10.10.2 - 10.10.11.254 i assume the subnet is the same like the LAN from server right (/23)

    Yes, im using Transparent Proxy.

    About the output i will post tomorrow because the server at my office. Thanks sir.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, August 31 2016, 12:25 PM - #Permalink
    Resolved
    0 votes
    It should work. Did you change the subnet in the NIC IP settings?
    What is the output of
    ifconfig | grep ^[a-z] -A 1

    Are you using the proxy?
    The reply is currently minimized Show
Your Reply