Forums

Resolved
0 votes
Hello,

I have installed clearOS 7.0. Updated and installed 1-to-1 NAT.
Have 2 network cards, 1 is for external and 1 is for lan.
External IP: XXX.XXX.XXX.34 Gateway: XXX.XXX.XXX.33 Subnetmask: 255.255.255.248
Didn't add any virtual interface.

I'm adding 1-to-1 NAT Rule:
Nickname: test
Interface: enp2s0 (External)
Public IP: XXX.XXX.XXX.37
Private IP: YYY.YYY.YYY.18
All protocols and Ports (checked)


After added that rule. It looks OK on web gui.
but I'm connecting via ssh and checking ifconfig. I only see 1 external ip address.

enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet XXX.XXX.XXX.34 netmask 255.255.255.248 broadcast XXX.XXX.XXX.39


there is no enp2s0:200 or something like that. 1-to-1 NAT should create it ? so I can't see the ip address that I've added via 1-to-1 NAT.

help please :(
Tuesday, June 13 2017, 01:53 PM
Share this post:
Responses (3)
  • Accepted Answer

    Wednesday, June 14 2017, 08:16 AM - #Permalink
    Resolved
    0 votes
    Doesn't 1:1 NAT point to an internal IP that already exists e.g. 1.2.3.4 (Public) points to 192.168.1.20 (Webserver running on LAN)

    So I don't think the internal IP will be created - it must exist. This is how I have always used it
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 13 2017, 10:40 PM - #Permalink
    Resolved
    0 votes
    Can you see if you can ping the address.

    Also, can you try with the .35 address instead, just to check.

    If that doesn't work, does your log for the firewall demonstrate any errors?

    service firewall restart
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 13 2017, 01:49 PM - #Permalink
    Resolved
    0 votes
    Hello,

    I have installed clearOS 7.0. Updated and installed 1-to-1 NAT.
    Have 2 network cards, 1 is for external and 1 is for lan.
    External IP: XXX.XXX.XXX.34 Gateway: XXX.XXX.XXX.33 Subnetmask: 255.255.255.248
    Didn't add any virtual interface.

    I'm adding 1-to-1 NAT Rule:
    Nickname: test
    Interface: enp2s0 (External)
    Public IP: XXX.XXX.XXX.37
    Private IP: YYY.YYY.YYY.18
    All protocols and Ports (checked)


    After added that rule. It looks OK on web gui.
    but I'm connecting via ssh and checking ifconfig. I only see 1 external ip address.

    enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet XXX.XXX.XXX.34 netmask 255.255.255.248 broadcast XXX.XXX.XXX.39


    there is no enp2s0:200 or something like that. 1-to-1 NAT should create it ? so I can't see the ip address that I've added via 1-to-1 NAT.

    help please :(
    The reply is currently minimized Show
Your Reply